NSKeyValueBindingCreation Protocol

2012-04-28 Thread Richard Somers
I have a number of controls with custom bindings that are programmatically added to a view hierarchy in a window. Calling –unbind: on these controls when the window is closes is a challenge. But it actually does not seem to matter. If –unbind: is never called and the window is closed there are

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Quincey Morris
On Apr 28, 2012, at 10:17 , Richard Somers wrote: > I have a number of controls with custom bindings that are programmatically > added to a view hierarchy in a window. Calling –unbind: on these controls > when the window is closes is a challenge. > > But it actually does not seem to matter. If

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Richard Somers
On Apr 28, 2012, at 1:30 PM, Quincey Morris wrote: > To get an answer on this, you'll probably need to say which memory model > you're using: GC, ARC or traditional RR. I am using traditional retain and release. --Richard ___ Cocoa-dev mailing list

NSTableView doesn't show data until I click on a header

2012-04-28 Thread Koen van der Drift
I have an NSTableView bound to an NSArrayController displaying some data in my app that are calculated when the user clicks a button. Initially no data is shown, but it appears once I click on one of the column headers. All the columns are filled with the correct data as I specified in the bindi

Re: NSTableView doesn't show data until I click on a header

2012-04-28 Thread Alex Zavatone
Not sure if this will help, but under iOS, there is a refreshTable method and also (IIRC) a "table is ready for refresh" variable. One thing you could do after your table data is loaded is make sure that a refresh happens so that it gets displayed. Hope this helps. On Apr 28, 2012, at 5:42 PM,

Re: NSTableView doesn't show data until I click on a header

2012-04-28 Thread Keary Suska
On Apr 28, 2012, at 3:42 PM, Koen van der Drift wrote: > I have an NSTableView bound to an NSArrayController displaying some data in > my app that are calculated when the user clicks a button. Initially no data > is shown, but it appears once I click on one of the column headers. All the > colu

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Richard Somers
On Apr 28, 2012, at 1:30 PM, Quincey Morris wrote: > To get an answer on this, you'll probably need to say which memory model > you're using: GC, ARC or traditional RR. Actually now that I have done a little more research it appears that my question regarding programmatically calling -unbind:

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Kyle Sluder
On Apr 28, 2012, at 10:17 AM, Richard Somers wrote: > I have a number of controls with custom bindings that are programmatically > added to a view hierarchy in a window. Calling –unbind: on these controls > when the window is closes is a challenge. Why? Someone has to have called -bind::: on t

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Quincey Morris
On Apr 28, 2012, at 15:52 , Richard Somers wrote: > Actually now that I have done a little more research it appears that my > question regarding programmatically calling -unbind: when the window closes > is not related to which memory model I am using: GC, ARC or traditional RR. > > GC is not

Re: NSKeyValueBindingCreation Protocol

2012-04-28 Thread Richard Somers
Kyle, Thanks for the advice. I programmatically add subviews to a view using a loop. The loop has a lot of logic in it. Not all subviews are the same. Some have bindings and some do not and not all bindings are the same. Some subviews have additional retained objects with their own bindings. S