Re: Sheets
Re: Sheets
- Subject: Re: Sheets
- From: Matt Jaffa <email@hidden>
- Date: Thu, 26 Feb 2004 15:49:32 -0700
Ok Here is my implementation,
The AddAccept Action button will initiate the sheet,
PopUpAdd is the NSPanel I want as the sheet.
@implementation FMPreferencePane
- (IBAction)AddAccept:(id)sender
{
[NSApp beginSheet:PopUpAdd modalForWindow:self modalDelegate:self
didEndSelector:nil contextInfo:nil];
[NSApp runModalForWindow:self];
}
- (IBAction)AddBlock:(id)sender
{
[PopUpBlock makeKeyAndOrderFront:self];
}
- (IBAction)Buy:(id)sender
{
}
- (IBAction)EnterLicenseKey:(id)sender
{
}
- (IBAction)Start:(id)sender
{
}
- (IBAction)SubmitLicense:(id)sender
{
}
@end
On Feb 26, 2004, at 3:37 PM, m wrote:
>
On Feb 26, 2004, at 2:01 PM, Matt Jaffa wrote:
>
>
> I have been messing around with the online documentation regarding how
>
> to open sheets, etc. And also been searching the archives. But
>
> couldn't
>
> find anything that would help, except for functions that display the
>
> sheets, but I have had strange behavior.
>
>
>
> I have this:
>
>
>
> #import <Cocoa/Cocoa.h>
>
> #import <PreferencePanes/NSPreferencePane.h>
>
>
>
> @interface FMPreferencePane : NSPreferencePane
>
>
Well, the problem is most certainly in your implementation, not your
>
interface, so next time you probably will have better luck getting
>
useful answers if you show us your implementation.
>
>
But, from your description (and never having written a pref pane), my
>
guess is that you shouldn't be attaching your sheet to your panel, but
>
to the System Preferences window itself.
>
>
_murat
_______________________________________________
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.
References: | |
| >Sheets (From: Matt Jaffa <email@hidden>) |
| >Re: Sheets (From: m <email@hidden>) |