Which document or document type would you expect to speak for the app? Only GIFs, JPEGs, RTFs, or should everyone have a say? What happens when there is NO document? Who is the app's delegate in that case?
- Gary L. Wade (Sent from my iPhone) On Mar 31, 2011, at 9:49 AM, Carlos Eduardo Mello <carloseme...@gmail.com> wrote: > Isn't the document subclass the app's delegate by default in the document > architecture? > > On Mar 31, 2011, at 1:36 PM, Gary L. Wade wrote: > >> These should be in the app delegate. >> >> - Gary L. Wade (Sent from my iPhone) >> >> On Mar 31, 2011, at 9:25 AM, Carlos Eduardo Mello <carloseme...@gmail.com> >> wrote: >> >>> Hi everyone, >>> >>> I've implemented both methods bellow, but my document-based app still opens >>> untitled windows at start-up and when reactivated from the dock. The >>> methods are placed in the window's delegate (MyDocument.m) but they never >>> get called. Does anybody have an idea why this is happening? >>> >>> - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender >>> { >>> NSLog(@"Calling [applicationShouldOpenUntitledFile]..."); >>> return NO; >>> } >>> >>> - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender >>> hasVisibleWindows:(BOOL)flag >>> { >>> NSLog(@"Calling [applicationShouldHandleReopen]..."); >>> return NO; >>> } >>> >>> Thanks, >>> >>> Carlos. >>> >>> >>> _______________________________________________ >>> >>> 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/garywade%40desisoftsystems.com >>> >>> This email sent to garyw...@desisoftsystems.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/garywade%40desisoftsystems.com > > This email sent to garyw...@desisoftsystems.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