Re: Weird sheet behavior (I think)
Re: Weird sheet behavior (I think)
- Subject: Re: Weird sheet behavior (I think)
- From: Matt Bigarani <email@hidden>
- Date: Sun, 13 Apr 2003 17:22:03 -0700
You were right. I set a variable to [NSApp mainWindow] in my
awakeFromNib, and used that. Works perfectly :)
Thanks!
Matt Bigarani <email@hidden>
www.myndlinksw.com
On Sunday, April 13, 2003, at 04:21 PM, Jan Van Tol wrote:
I believe [NSApp mainWindow] will return nil if another application is
in the foreground. And further, I think the beginSheet method will
run it as a window if that argument is nil (as it probably is in this
case).
-Jan Van Tol
On Saturday, April 12, 2003, at 08:50 PM, Matt Bigarani wrote:
Hi,
I've got a window I'm popping up as a sheet in my prefPane. To get
the sheet to slide down, the user drags an application onto an
NSTableView in my prefPane. If the application can't be located in my
database, it pops open a sheet with the list of applications that
weren't found.
Problem is, if the Finder is in front when they drop the file on my
NSTableView, and the sheet gets the command to open, it opens up as a
regular window. On the other hand, if I open the applications folder
up in the Finder, bring my prefpane to the front, and then drag the
application(s) in, keeping the prefpane in front, the sheet slides
down the way it's 'supposed' to. Bug? Normal? Something I've done?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.