Does someone has an example to work with the OSX internal Undo function?
Lets say I have an array with four values. How can I undo/redo the data of these array?
Does someone has experience with the NSUndoManager ?
Does someone has experience with the NSUndoManager ?
macOS Catalina 10.15.7
Re: Does someone has experience with the NSUndoManager ?
Do you mean a normal array or a NSArray ?Wolfram wrote:Does someone has an example to work with the OSX internal Undo function?
Lets say I have an array with four values. How can I undo/redo the data of these array?
I believe this undo function only works with objects and not with a PureBasic array.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Does someone has experience with the NSUndoManager ?
Hi Wilbert,wilbert wrote: Do you mean a normal array or a NSArray ?
I believe this undo function only works with objects and not with a PureBasic array.
well for the beginning an an NSArray is ok.
Maybe we could use an pb pointer to read the NSArray more easy inside of pb?
*myNSArray[1]\value
macOS Catalina 10.15.7
Re: Does someone has experience with the NSUndoManager ?
I know this isn't what you're asking, but if you don't want to mess with OS specific stuff and want a cross-platform system, srod's Demento is really good.
Forum topic: viewtopic.php?f=12&t=42867
Download: http://backup.rsbasic.de/?file=Demento.zip
Forum topic: viewtopic.php?f=12&t=42867
Download: http://backup.rsbasic.de/?file=Demento.zip
Re: Does someone has experience with the NSUndoManager ?
I looked at it but find it hard to understand how to use it.Wolfram wrote:well for the beginning an an NSArray is ok.
Maybe we could use an pb pointer to read the NSArray more easy inside of pb?
*myNSArray[1]\value
You have to provide specific methods so the undo manager knows how to redo something.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Does someone has experience with the NSUndoManager ?
Ok, if YOU say it is hard to understand it is no shame for me to give up.wilbert wrote: I looked at it but find it hard to understand how to use it.
macOS Catalina 10.15.7