Re: Sheets Trouble
Re: Sheets Trouble
- Subject: Re: Sheets Trouble
- From: Theodore Petrosky <email@hidden>
- Date: Fri, 12 Dec 2003 05:11:28 -0800 (PST)
Aaron,
check out this article... maybe it will help.
http://www.macdevcenter.com/pub/a/mac/2001/10/05/cocoa.html?page=1
Ted
>
Message: 3
>
Date: Fri, 12 Dec 2003 11:57:56 +0800
>
From: Aaron Boothello <email@hidden>
>
To: email@hidden
>
Subject: Sheets trouble.... kinda odd.
>
>
I'm trying to implement sheets in my App. ive got it
working using the
>
following code....
>
>
-(IBAction) doSheet:(id)sender
>
{
>
[NSApp beginSheet:sheet
>
modalForWindow:testview
>
modalDelegate:nil
>
didEndSelector:nil
>
contextInfo:nil];
>
>
[NSApp runModalForWindow: sheet];
>
[NSApp endSheet: sheet];
>
[sheet orderOut:self];
>
}
>
>
and the following call when i finish with the sheet:
>
[NSApp stopModal];
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
_______________________________________________
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.