Re: applicationShouldOpenUntitledFile in Core Data App?
Re: applicationShouldOpenUntitledFile in Core Data App?
- Subject: Re: applicationShouldOpenUntitledFile in Core Data App?
- From: Andy Lee <email@hidden>
- Date: Tue, 03 Feb 2009 18:49:56 -0500
On Feb 3, 2009, at 6:02 PM, Jean-Nicolas Jolivet wrote:
yeah I just wrote it from memory in my email, in my app, I actually
copied the method declaration from the docs...
That's the way to do it IMO for any method name that I don't trust
myself to remember. :)
FWIW, I made a quick Core Data document-based app that does nothing
but implement that delegate method, and it worked for me. The method
gets called and it has the desired effect whether it returns YES or
NO. Here's what my method looks like:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
NSLog(@"xxxxx----- applicationShouldOpenUntitledFile:");
return YES;
}
--Andy
(I'm 100% sure it's not a typo/delegate connection problem)
On 3-Feb-09, at 3:20 PM, Andy Lee wrote:
On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrote:
I tried overriding the applicationShouldOpenUntitledFile in my App
delegate
Is this a typo in your email, or did you leave out the colon in
your method name? The method should be declared like this:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
--Andy
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
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