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
silver...@videotron.ca
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com