Re: Open new document in first (empty) window
Re: Open new document in first (empty) window
- Subject: Re: Open new document in first (empty) window
- From: arri <email@hidden>
- Date: Thu, 7 Jun 2007 01:19:20 +0200
wouldn't it be a lot easier to just use NSDocuments'
- (BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)docType
to load the data of a previously saved document into the virgin
document (and -window)?
i guess you'll have to subclass NSDocumentController or someting
to intercept the user-actions when he opens the first document.
arr!
On Jun 6, 2007, at 10:57 PM, Ari Benzane wrote:
So basically what I do is draw the new document at exactly the
same position and size as the empty one and then close the empty
one in the background. The delay and disabling of screen updates
is necessary to avoid ugly flashes of the saved document at its
original position.
Good luck, Patrick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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