• 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: Opening a sheet in a non document project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a sheet in a non document project?


  • Subject: Re: Opening a sheet in a non document project?
  • From: Andy Satori <email@hidden>
  • Date: Tue, 25 Nov 2003 14:54:13 -0500

[NSApp mainWindow];

On Nov 25, 2003, at 1:37 PM, David Sledge wrote:

>> I am trying to open a sheet on the main window of a newly created
>> cocoa
>> application project. This is not a document based application. I have
>> created an AppController class and I am trying to open a sheet on the
>> main
>> window. In a document based project you would call [self
>> windowForSheet]
>> to get the modalForWindow. What do I call if my AppController extends
>> NSObject and not NSDocument? How do I set the modalForWindow?
>>
>> Here is my example:
>>
>> - (IBAction)openEventSheet:(id)sender
>> {
>> [NSApp beginSheet:eventSheet
>> modalForWindow:???
>> modalDelegate:self
>>
>> didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
>> contextInfo:nil];
>> }
> _______________________________________________
> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: 
 >Opening a sheet in a non document project? (From: David Sledge <email@hidden>)

  • Prev by Date: Xcode: Setting window to ignore mouse click events & Build problems
  • Next by Date: Document opening question
  • Previous by thread: Opening a sheet in a non document project?
  • Next by thread: RE: Opening a sheet in a non document project?
  • Index(es):
    • Date
    • Thread