Re: Where can I write in Undo/Redo action titles?

2017-03-27 Thread Quincey Morris
On Mar 27, 2017, at 16:25 , Daryle Walker wrote: > > The problem is that you’re traditionally supposed to put the names of actions > during the action so Undo/Redo can add them to their menu label. That’s not quite true. By default, *all* of the undo actions registered during

Re: How to debug crash in NSOperation?

2017-03-27 Thread Quincey Morris
On Mar 26, 2017, at 22:04 , Gerriet M. Denkmann wrote: > > [ arrayOfStrings writeToFile: “directoryPath/SortedKeys.plist” atomically: > YES ]; ← pseudo code A couple of points about this line of code, assuming that the method -[NSArray writeToFile:atomically:] is actually

Re: How to debug crash in NSOperation?

2017-03-27 Thread Gerriet M. Denkmann
Sent from my iPhone > On 28 Mar 2017, at 10:32, Jens Alfke wrote: > > >> On Mar 27, 2017, at 8:25 PM, Gerriet M. Denkmann wrote: >> >> >> >> Sent from my iPhone >> >>> On 27 Mar 2017, at 23:37, Jens Alfke wrote: >>> >>>

New iTunes visual plugin SDK?

2017-03-27 Thread Greg Weston
So, apparently iTunes 12.6 doesn't support older plugins any more. Has anyone seen or heard news of a new SDK so those of us who have created plugins can update them? Greg ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: How to debug crash in NSOperation?

2017-03-27 Thread Jens Alfke
> On Mar 27, 2017, at 8:25 PM, Gerriet M. Denkmann wrote: > > > > Sent from my iPhone > > On 27 Mar 2017, at 23:37, Jens Alfke > wrote: > >> >>> On Mar 26, 2017, at 10:04 PM, Gerriet M. Denkmann

Re: How to debug crash in NSOperation?

2017-03-27 Thread Gerriet M. Denkmann
Sent from my iPhone > On 27 Mar 2017, at 23:37, Jens Alfke wrote: > > >> On Mar 26, 2017, at 10:04 PM, Gerriet M. Denkmann >> wrote: >> >> Yes, you are right. And I have to apologise for not spotting this: >> >> *** Terminating app due to uncaught

Where can I write in Undo/Redo action titles?

2017-03-27 Thread Daryle Walker
[I thought I wrote something about this, but I didn’t see it in my Sent e-mail list.] I “drunk the Kool-Aid” and have a Core Data-based model and using Cocoa Bindings. This combination gives me Undo support. The problem is that you’re traditionally supposed to put the names of actions during

Re: Can't access by data via KVC during KVO

2017-03-27 Thread Quincey Morris
On Mar 27, 2017, at 14:48 , Daryle Walker wrote: > > The message observation points to the object controller’s “selection”, then a > specific property of my model (of type “String?”). >> Could not cast value of type '_NSStateMarker' (0x7fffa3003cf8) to 'NSString' >>

Can't access by data via KVC during KVO

2017-03-27 Thread Daryle Walker
This is from my window controller class, which has a (optional) reference to my document subclass’s model data. Through Interface Builder, that data is connected to a NSObjectController, and a property of that data is connected to a NSArrayController. The window controller has outlets to both

Re: Is there a way to access other controller square's other icons programmatically?

2017-03-27 Thread Quincey Morris
On Mar 27, 2017, at 12:50 , Daryle Walker wrote: > > So, there is no API to getting at runtime the top-bar items that you add?! > (If you don’t mind a subclass, you can drag items from the storyboard to the > corresponding subclass definition file.) AFAIK, there is no API for

Re: How do I set a NSTextView's font in Interface Builder?

2017-03-27 Thread Daryle Walker
> On Mar 24, 2017, at 2:28 PM, Keary Suska wrote: > >> On Mar 24, 2017, at 10:33 AM, Jens Alfke wrote: >> >>> On Mar 23, 2017, at 6:35 PM, Daryle Walker wrote: >>> >>> I have the NSTextView selected in its storyboard scene. And

Re: Is there a way to access other controller square's other icons programmatically?

2017-03-27 Thread Daryle Walker
> On Mar 24, 2017, at 3:49 PM, Quincey Morris > wrote: > > On Mar 24, 2017, at 11:11 , Daryle Walker > wrote: >> >> I have a re-explaination, including a picture, at … > > I think I’m beginning to understand

Re: How to debug crash in NSOperation?

2017-03-27 Thread Jens Alfke
> On Mar 26, 2017, at 10:04 PM, Gerriet M. Denkmann wrote: > > Yes, you are right. And I have to apologise for not spotting this: > > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '*** setObjectForKey: object cannot be nil (key:

Re: How to convert NSData → Property List Object

2017-03-27 Thread Gerriet M. Denkmann
> On 27 Mar 2017, at 15:49, Felix Franz wrote: > > On 27 Mar 2017, at 10:42, Gerriet M. Denkmann wrote: >> >> propertyListFromData:mutabilityOption:format:errorDescription: (which >> converts an NSData into some property list object) is deprecated. >>

How to convert NSData → Property List Object

2017-03-27 Thread Gerriet M. Denkmann
propertyListFromData:mutabilityOption:format:errorDescription: (which converts an NSData into some property list object) is deprecated. The documentation says: This method is deprecated. Use dataWithPropertyList:format:options:error: instead. But this seems to be the exact opposite: converting