• 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: Sheet not attached to window II
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheet not attached to window II


  • Subject: Re: Sheet not attached to window II
  • From: Adhamh Findlay <email@hidden>
  • Date: Wed, 30 Jan 2008 22:48:14 -0600


On Jan 30, 2008, at 6:14 PM, Keary Suska wrote:

on 1/29/08 5:58 PM, email@hidden purportedly said:

[NSApp beginSheet:[sheet window] modalForWindow: [[self document]
windowForSheet] modalDelegate: sheet
didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo:NULL];


Both the NSLog statements and gdb confirm that [self document] and [[self document] windowForSheet] return initialized objects.

But does [sheet window] return an initialized object?


Yup, and the sheet does display.

The even weirder thing is that I can replace the [NSApp beginSheet...] with NSBeginAlertSheet() and the sheet appears normally. The didEndSelector of that sheet does the [NSApp beginSheet...] call and this new custom sheet is not attached to the window either.

However, we use [NSApp beginSheet...]  other places and it works fine.

Any help is appreciated, I'm lost.  :-)

Adhamh
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sheet not attached to window II
      • From: Hasani Hunter <email@hidden>
References: 
 >Re: Sheet not attached to window II (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: reset alternating row background color
  • Next by Date: Re: LaTeX question
  • Previous by thread: Re: Sheet not attached to window II
  • Next by thread: Re: Sheet not attached to window II
  • Index(es):
    • Date
    • Thread