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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to