Re: Weird sheet behavior (I think)
Re: Weird sheet behavior (I think)
- Subject: Re: Weird sheet behavior (I think)
- From: Sean Todd <email@hidden>
- Date: Sun, 13 Apr 2003 17:55:37 -0500
On Sunday, April 13, 2003, at 12:00 AM,
email@hidden wrote:
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?
I am also having trouble with a sheet in my application being displayed
as a normal window instead of dropping down as a sheet. In my case I
have a window that contains a tabbed view with each of the tabs
containing a custom view. A button in this view causes a sheet to be
displayed to collect info from the user. The code for this was taken
from the Sheet documentation:
[NSApp beginSheet: personEntryWindow
modalForWindow: [self window]
modalDelegate: nil
didEndSelector:@selector(sheetDidEnd: returnCode: contextInfo:)
contextInfo:nil];
[NSApp runModalForWindow: personEntryWindow];
// Sheet is up here.
[NSApp endSheet: personEntryWindow];
[personEntryWindow orderOut: self];
I have tried several different things with no success. I am beginning
to suspect a bug.
Sean Todd
_______________________________________________
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.