Re: consecutive open dialogs
Re: consecutive open dialogs
- Subject: Re: consecutive open dialogs
- From: Mitchell Livingston <email@hidden>
- Date: Wed, 15 Aug 2007 11:54:37 -0700
The dictionary I'm using is not being used when I release it. I only grab an int from it, which does not need to be retained, and the other object I use from it was allocated when I first started, so releasing the dictionary should still leave it with a retain count of one. I tried commenting out [dictionary release] and still receive
*** -[NSSavePanelAuxiliary UTF8String]: selector not recognized [self = 0x524c4e0]
I am thinking it might have something to do with all open panels coming from a single instance, but using orderOut and close in the did-end method both did not work.
Thanks,
Mitchell Livingston
On Wednesday, August 15, 2007, at 02:43PM, "Clark Cox" <email@hidden> wrote:
>On 8/15/07, Mitchell Livingston <email@hidden> wrote:
>> The problem is only the first open works. For the rest it has
>> problems creating the NSDictionary and although it does show the open
>> sheet, after I hit OK I get "*** -[NSSavePanelAuxiliary UTF8String]:
>> selector not recognized [self = 0x523d620] " in Console. Is there
>> something I'm doing wrong?
>
>Yes; in -opernFilesAskWithDict:, you're calling release on the
>dictionary. This is essentially pulling the rug out from underneath
>NSSavePanel.
>
>> The code is available http://transmission.m0k.org/trac/browser/tags/
>> 0.80/macosx/Controller.m starting at line 798.
>
>--
>Clark S. Cox III
>email@hidden
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden