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: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)?
Subject
:
Re: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)?
From: François Frisch <
email@hidden
>
Date: Fri, 03 Aug 2001 10:48:14 -0700
Answers at
http://www.cocoadev.com/index.pl?NSAlertPanel
>
Hi everybody,
>
>
The documentation for alert sheets in class NSAlertPanel are all marked as
>
"Description forthcoming" in AppKit.pdf
>
>
I manage to display the sheet in Java with no problem, except for not
>
knowing how the NSSelectors are implemented.
>
>
Arguments to NSAlertPanel.beginCriticalAlertSheet are:
>
>
public static void beginCriticalAlertSheet(
>
String aString1, // Major text
>
String aString2, // Default button text e.g. "OK"
>
String aString3, // Alternate button 1 e.g. "Cancel"
>
String aString4, // Alternate button 2 e.g. "Whatever"
>
NSWindow aWindow, // Parent window
>
Object anObject1, // What's this object for?
>
NSSelector aSelector1, // Result selector
>
NSSelector aSelector2, // Why two?
>
Object anObject2, // contextInfo?
>
String aString5) // Minor text
>
>
I tried (example),
>
>
NSAlertPanel.beginCriticalAlertSheet("Are you sure you wish to delete your
>
entire income?", "Cancel", "Delete", null, mainWindow, null, new
>
NSSelector("delIncomePanelDidEnd", new Class[] {NSAlertPanel.class,
>
int.class, Object.class}), null, null, "(Your bank manager may get an
>
ulcer)");
>
>
but I get an "unrecognized selector" error.
>
>
-new Class[] {NSAlertPanel.class, int.class, Object.class})- was a guess,
>
but it worked for NSOpenPanel. I thought this method call would be similar.
>
>
Can anyone please fill in the missing information for the NSSelector
>
implementation?
>
>
>
Any help would be appreciated.
>
>
Thanks,
>
>
>
Mark
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Follow-Ups
:
RE: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)? SOLVED
From:
"Mark Orchard" <email@hidden>
References:
>
[HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)?
(From: "Mark Orchard" <email@hidden>)
Prev by Date:
Re: International strings
Next by Date:
Re: International strings
Previous by thread:
Re: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)?
Next by thread:
RE: [HELP] beginCriticalAlertSheet NSSelector implementation in Cocoa (Java/ObjC)? SOLVED
Index(es):
Date
Thread