Re: Advanced?? Bindings Questions
Re: Advanced?? Bindings Questions
- Subject: Re: Advanced?? Bindings Questions
- From: Joseph Jones <email@hidden>
- Date: Mon, 27 Sep 2004 19:16:08 -0700
I've been doing some analysis and I think this is because the document is
being observed. If you select Release on close in IB you can see it throws
an exception (at least mine does) concerning the document deallocating while
still being observed.
Unfortunately I have not been able to noodle out any way of stopping the
observation prior to deallocating. I tried using [self
removeObserver:myArrayController forPath:@"My Path"] in my documents dealloc
call but that just causes an EXEC_BAD_ADDRESS exception. Quitting seems to
do the "right thing" in this case and I would love to know what that is.
BTW, I got my sample all working, including the Info panel, the category
editor, full Master/Detail view and added a demonstration of the use of
@sum, @min, @max, etc.
Joe
On 9/27/04 6:38 PM, "Don Carlile" <email@hidden> wrote:
>
> On Sep 27, 2004, at 2:08 PM, Scott Stevenson wrote:
>
>>
>> On Sep 27, 2004, at 1:05 PM, Joseph Jones wrote:
>>
>>> In my MainMenu.nib I have declared two panels that I wish to be
>>> global and
>>> to track the currently selected item and to provide a means of
>>> modifying the
>>> category list for a document. The category panel is attached to an
>>> NSArrayController that is attached to the
>>> NSApplication.mainWindow.document.categories.
>>
>> Try binding to
>> NSApplication.mainWindow.windowController.document.<whatever> More on
>> that here:
>>
>> http://www.cocoabuilder.com/archive/message/2004/8/1/113436
>>
> Yes, this approach will work for connecting, but there is a big
> problem. If you do this, the document will not close when the window
> closes. I'm sorry, I don't know how to get around this. I posted on
> it Saturday.
>
> Don Carlile
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden