On 24/10/2012, at 2:31 AM, ecir hana <ecir.h...@gmail.com> wrote:

> I tried to return YES in both applicationShouldOpenUntitledFile: and
> applicationOpenUntitledFile: of the app delegate without luck.


If you return YES from -applicationOpenUntitledFile: the application will NOT 
open a new file - it has assumed that this method has done it and by returning 
YES that's what you're telling it. You want to either return NO or else not 
override this method at all.

--Graham


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to