(void *)contextInfo
(void *)contextInfo
- Subject: (void *)contextInfo
- From: Rainer Standke <email@hidden>
- Date: Tue, 12 Jan 2010 11:51:11 -0800
I am trying to get some contextinfo across while a sheet is displayed.
Here is the code that displays the sheet:
NSArray *theContextInfo = [[NSArray alloc] init];
theContextInfo = [NSArray arrayWithObject:objTBD];
[NSApp beginSheet: alertWindow
modalForWindow: [selfwindowForSheet]
modalDelegate: self
didEndSelector: @selector(didEndSheet:returnCode:contextInfo:)
contextInfo: theContextInfo];
and here is the code that runs eventually after the sheet has been
dismissed:
- (void)didEndSheet:(NSWindow *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo
{
NSLog(@"Sheet End");
NSLog(@"%@", [contextInfo class]);
[sheet orderOut:self];
}
The contextinfo's class is logged as NSConcreteMutableData. How can I
get back to the array? Why is contextinfo considered to be of class
void in the signature?
What am I missing? (Another newbie thing I suspect...)
Thanks,
Rainer
_______________________________________________
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