NSWindow remember whether showing on re-launch

2014-02-07 Thread Roland King
I have a window in my OSX application which shows a log of commands. It's not 'Visible At Launch' because you often don't need to see it. It's also excluded from the windows menu, instead it has its own permanent menu item on that menu which both shows if it's enabled and acts as a menu item to

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-07 Thread Kyle Sluder
On Fri, Feb 7, 2014, at 04:27 PM, David Delmonte wrote: > Hi, Is there a way to turn secureTextField on and off in Cocoa? I'd like > users to have the option to see their passwords. > In iOS, I can do something like [textField setSecureTextEntry:YES]; > > I found [secureTextField setEchoBullets]

Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-07 Thread David Delmonte
Hi, Is there a way to turn secureTextField on and off in Cocoa? I'd like users to have the option to see their passwords. In iOS, I can do something like [textField setSecureTextEntry:YES]; I found [secureTextField setEchoBullets] but that's not what I want. Thanks ___

Re: [NSPointerArray copy] problem

2014-02-07 Thread Graham Cox
Darn. What about -allObjects? Is that OK on <10.7? I don't care about any NULLs, so that should give me a functional copy. --Graham On 8 Feb 2014, at 9:45 am, Greg Parker wrote: > On Feb 7, 2014, at 4:26 AM, Graham Cox wrote: >> I'm using NSPointerArray to hold a list of weak references. >

Re: NSToolbar delegate -toolbarAllowedItemIdentifiers:

2014-02-07 Thread Quincey Morris
On Feb 7, 2014, at 14:49 , Markus Spoettl wrote: > But apparently its result is ignored because items that are disallowed (by > not returning them in this delegate method) are still visible. It’s a while since I had to suffer through the pain that is NSToolbar delegate methods, but I suspect t

Re: NSToolbar delegate -toolbarAllowedItemIdentifiers:

2014-02-07 Thread Markus Spoettl
On 2/7/14 11:19 PM, Jerry Krinock wrote: I’ve never used -toolbarAllowedItemIdentifiers:. However, its documentation states… "Sent to discover the allowed item identifiers for a toolbar.” Wonderful :)) There is no indication of who sends it, when, nor what is done with the result. The “Dis

Re: [NSPointerArray copy] problem

2014-02-07 Thread Greg Parker
On Feb 7, 2014, at 4:26 AM, Graham Cox wrote: > I'm using NSPointerArray to hold a list of weak references. > > In one case, I need to enumerate these in a mutation-safe way, so I make a > copy of the pointer array before iterating it. That works fine on 10.7 and > later, but on 10.6.x, I get a

Re: NSToolbar delegate -toolbarAllowedItemIdentifiers:

2014-02-07 Thread Jerry Krinock
I’ve never used -toolbarAllowedItemIdentifiers:. However, its documentation states… "Sent to discover the allowed item identifiers for a toolbar.” Wonderful :)) There is no indication of who sends it, when, nor what is done with the result. The “Discussion” is no more enlightening either. T

Core Data : Synchronizing objects with SQLite file

2014-02-07 Thread Jerry Krinock
I’m currently running a Core Data app in Xcode and trying to figure out why an object tells me that the value of its ‘foo’ attribute is nil, but when I query the SQLite file on disk, the value of the ‘ZFOO’ attribute for the problem object is a short string, not nil. There is only one managed o

Re: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are

2014-02-07 Thread Markus Spoettl
On 2/7/14 10:31 PM, Markus Spoettl wrote: Hi, I have a strange problem with a toolbar that is configured in IB which I need to adjust programmatically. It has a delegate set (to the window controller) but for some reason - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar is neve

NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are

2014-02-07 Thread Markus Spoettl
Hi, I have a strange problem with a toolbar that is configured in IB which I need to adjust programmatically. It has a delegate set (to the window controller) but for some reason - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar is never getting called. Other delegate methods

[NSPointerArray copy] problem

2014-02-07 Thread Graham Cox
I'm using NSPointerArray to hold a list of weak references. In one case, I need to enumerate these in a mutation-safe way, so I make a copy of the pointer array before iterating it. That works fine on 10.7 and later, but on 10.6.x, I get a runtime exception that [NSConcretePointerArray copyWit