• 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: Alert Sheets hard wired in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alert Sheets hard wired in Interface Builder


  • Subject: Re: Alert Sheets hard wired in Interface Builder
  • From: "John Love" <email@hidden>
  • Date: Sat, 31 May 2008 12:40:17 -0400

More NSLog data:


2008-05-31 12:33:51.001 Calculate Medical[1926:10b] NSWindow does not
support utility styleMask 0x10
2008-05-31 12:33:51.023 Calculate Medical[1926:10b] NSWindow does not
support utility styleMask 0x10

2008-05-31 12:33:55.434 Calculate Medical[1926:10b] *** -[NSAlert
endErrorSheet:code:info:]: unrecognized selector sent to instance 0x16ed20
2008-05-31 12:33:55.438 Calculate Medical[1926:10b] *** -[NSAlert
endErrorSheet:code:info:]: unrecognized selector sent to instance 0x16ed20


I put back:

didEndSelector:@selector(endCalculateSheet:code:info:) into:

[calculateSheet beginSheetModalForWindow:docWindow modalDelegate:nil
                  didEndSelector:@selector(endCalculateSheet:code:info:)
                  contextInfo:docWindow];

and here's the selector method:

- (void) endCalculateSheet:(NSWindow*)theSheet code:(int)returnCode
info:(void*)contextInfo {
    if (returnCode == NSAlertDefaultReturn) { // "Good Bye!"

        NSLog(@"Default Button clicked");     // does not log this entry

    }

    [theSheet close];
}

John Love
_______________________________________________

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: Alert Sheets hard wired in Interface Builder
      • From: Jens Alfke <email@hidden>
    • Re: Alert Sheets hard wired in Interface Builder
      • From: Keary Suska <email@hidden>
References: 
 >Alert Sheets hard wired in Interface Builder (From: "John Love" <email@hidden>)
 >Re: Alert Sheets hard wired in Interface Builder (From: "Kyle Sluder" <email@hidden>)
 >Re: Alert Sheets hard wired in Interface Builder (From: Jens Alfke <email@hidden>)
 >Re: Alert Sheets hard wired in Interface Builder (From: "John Love" <email@hidden>)

  • Prev by Date: Re: Possible Bug in NSFileManager -moveItemAtPath:toPath:error:
  • Next by Date: Re: runloops and NSURLConnection
  • Previous by thread: Re: Alert Sheets hard wired in Interface Builder
  • Next by thread: Re: Alert Sheets hard wired in Interface Builder
  • Index(es):
    • Date
    • Thread