Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Kyle Sluder
On Oct 26, 2012, at 6:52 AM, Mike Abdullah wrote: >> Yes. I saw that in your previous post. But I asked both AppKiDo and Xcode >> and nobody showed me any documentation about this accessor. >> So I am wary of using undocumented stuff. > > It's actually a method on NSWindowController. My apolo

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Mike Abdullah
On 26 Oct 2012, at 10:55, "Gerriet M. Denkmann" wrote: > > On 26 Oct 2012, at 16:11, Kyle Sluder wrote: > >> On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" >> wrote: >> >>> >>> On 26 Oct 2012, at 01:11, Seth Willits wrote: >>> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wr

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Gerriet M. Denkmann
On 26 Oct 2012, at 16:11, Kyle Sluder wrote: > On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" > wrote: > >> >> On 26 Oct 2012, at 01:11, Seth Willits wrote: >> >>> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: >>> This works, but I have a strong feeling that there is a

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Kyle Sluder
On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" wrote: > > On 26 Oct 2012, at 01:11, Seth Willits wrote: > >> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: >> >>> This works, but I have a strong feeling that there is a very obvious better >>> solution which I somehow cannot see.

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Gerriet M. Denkmann
On 26 Oct 2012, at 01:11, Seth Willits wrote: > On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: > >> This works, but I have a strong feeling that there is a very obvious better >> solution which I somehow cannot see. > > > There actually isn't an obvious solution. Strange. I though

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 3:24 PM, Kyle Sluder wrote: > On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote: >> >> But, if you just use the -object in the notification to >> windowDidBecomeMain: you're fine. So if you keep a reference to that >> window/document yourself and return it from your own cu

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Kyle Sluder
On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote: > > But, if you just use the -object in the notification to > windowDidBecomeMain: you're fine. So if you keep a reference to that > window/document yourself and return it from your own currentDocument > that'd work. You also need to watch win

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: > This works, but I have a strong feeling that there is a very obvious better > solution which I somehow cannot see. There actually isn't an obvious solution. -[NSDocumentController currentDocument] isn't KVOable (which is a bummer), but

Binding InfoPanel to currentDocument

2012-10-25 Thread Gerriet M. Denkmann
I have a Panel which has a PopUpButton which has it's Content Values bound to an ArrayController. The ArrayController has it's Content Array bound to File's Owner: currentDocument.listOfThings. The File's Owner (aka) Application Delegate: @property (readonly) DocumentSubclass *currentDocument;