• 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: struct into a pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: struct into a pasteboard


  • Subject: Re: struct into a pasteboard
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 22 Dec 2007 12:35:54 -0800

I think that what Lorenzo wants to do is to put pointer(s) on the pasteboard, so he can change their values. Pointers on the pasteboard don't work. (I've been down that road).

If your dragging source and destination are both within your app, consider the "sneakerboard" method. Instead of putting your struct into the pasteboard, put into a global variable, your "sneakerboard". To the pasteboard, write some nonsense object, or maybe an NSString which would be appropriate for other apps receiving your drags. Then, when your drag destination receives a drag of your type, ignore the pasteboard data and instead grab the value from your sneakerboard.
_______________________________________________


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: 
 >struct into a pasteboard (From: Lorenzo <email@hidden>)
 >Re: struct into a pasteboard (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: NSImage to PDFPage in Tiger?
  • Next by Date: Re: struct into a pasteboard
  • Previous by thread: Re: struct into a pasteboard
  • Next by thread: Re: struct into a pasteboard
  • Index(es):
    • Date
    • Thread