> Thanks to those who helped me with this question. The solution was to > use NSWindow's -attachedSheet method, and (in my case), check for > nil. If nil, there is no attached sheet; if not nil, there is an > attached sheet.
Yes there's a call for that so you don't need to carry around a state variable to remember when you've put up a sheet. But you still seem to have gotten 2 controllers instantiated on 1 window, and this is going to cause you other problems in the future. So you probably still need to figure out why your first technique was failing. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice _______________________________________________ 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