• 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: Quastion about types in a NSPasteBoard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Quastion about types in a NSPasteBoard (From: Gustavo Pizano <email@hidden>)
 >Re: Quastion about types in a NSPasteBoard (From: Graham Cox <email@hidden>)
 >Re: Quastion about types in a NSPasteBoard (From: Gustavo Pizano <email@hidden>)
 >Re: Quastion about types in a NSPasteBoard (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Quastion about types in a NSPasteBoard
  • Next by Date: Re: NSCell's mouse tracking method never called
  • Previous by thread: Re: Quastion about types in a NSPasteBoard
  • Next by thread: Detecting lack of user input system wide.
  • Index(es):
    • Date
    • Thread