• 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
(void *)contextInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


  • Follow-Ups:
    • Re: (void *)contextInfo
      • From: Markus Spoettl <email@hidden>
    • Re: (void *)contextInfo
      • From: "Hank Heijink (Mailinglists)" <email@hidden>
    • Re: (void *)contextInfo
      • From: Nick Zitzmann <email@hidden>
    • Re: (void *)contextInfo
      • From: Sherm Pendley <email@hidden>
    • Re: (void *)contextInfo
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: NSExtraMIData?
  • Next by Date: Re: (void *)contextInfo
  • Previous by thread: Re: NSFileHandle weirdness on 10.5 ...
  • Next by thread: Re: (void *)contextInfo
  • Index(es):
    • Date
    • Thread