• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Sheets
      • From: m <email@hidden>
References: 
 >Sheets (From: Matt Jaffa <email@hidden>)
 >Re: Sheets (From: m <email@hidden>)

  • Prev by Date: Re: Sheets
  • Next by Date: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
  • Previous by thread: Re: Sheets
  • Next by thread: Re: Sheets
  • Index(es):
    • Date
    • Thread