On Feb 7, 2011, at 07:37, Bruce Cresanta wrote:

>       I have two types of NSDocument.   One of them only ever needs to be 
> active one at a time (No duplicates).   How do I check to see if the window 
> is open first and make it key, and if it is not open already, open it once?

What do you mean by "two types of NSDocument"? Two subclasses? Two document 
types? Two file types? NSDocument already has the behavior you describe, based 
on the identity of the underlying file. If you don't see this behavior, then 
you're likely subverting it somehow, or working with two different files.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to