• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Advanced?? Bindings Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advanced?? Bindings Questions


  • Subject: Re: Advanced?? Bindings Questions
  • From: Joseph Jones <email@hidden>
  • Date: Tue, 28 Sep 2004 22:33:58 -0700

Thanx to another thread I realized that the issue could be the fact that I
had a binding to NSApplication.mainWindow.windowController.document. If I
dropped the windowController part then I can both release the window on
close and terminate the application when the last window is closed.

Joe



On 9/27/04 7:16 PM, "Joseph Jones" <email@hidden> wrote:

> 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
>


 _______________________________________________
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

References: 
 >Re: Advanced?? Bindings Questions (From: Joseph Jones <email@hidden>)

  • Prev by Date: Re: Document Edit State, Undo and Cocoa Bindings
  • Next by Date: Re: Document Edit State, Undo and Cocoa Bindings
  • Previous by thread: Re: Advanced?? Bindings Questions
  • Next by thread: open the AddressBook and have a group selected
  • Index(es):
    • Date
    • Thread