Re: Quastion about types in a NSPasteBoard
Re: Quastion about types in a NSPasteBoard
- Subject: Re: Quastion about types in a NSPasteBoard
- From: Gustavo Pizano <email@hidden>
- Date: Thu, 10 Dec 2009 13:15:28 +0100
Graham hi.
On Dec 10, 2009, at 1:08 PM, Graham Cox wrote:
> NSString* myType = [pb availableTypeFromArray:[NSArray arrayWithObjects:@"first_choice", @"second_choice", nil]];
> Class theClass = [classMapDictionary objectForKey:myType];
>
> if( theClass )
> {
> id object = [[theClass alloc] init];
> }
I was thinking in something like this whe getting the type from the pasteboard. but didn't know... I guess I will ask in the Obj-c list about this..
then also Im gonna change the way I get the types form the pb as you suggested.
Im developing for 10.6 and on... but so far Im placing only one Data type in the PB,.. who knows if I may need to put more in a future...
Ok Im gonna leave that weirdo type alone... hehe
Thanks for the help, as always very useful.
Gustavo
_______________________________________________
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