• 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
[NSPasteboard setPropertyList:forType:] is buggy...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSPasteboard setPropertyList:forType:] is buggy...


  • Subject: [NSPasteboard setPropertyList:forType:] is buggy...
  • From: Stephane <email@hidden>
  • Date: Wed, 29 Nov 2006 17:08:57 +0100

According to the documentation:

setPropertyList:forType:
- (BOOL)setPropertyList:(id)propertyList forType:(NSString *)dataType

Writes propertyList to the pasteboard server. dataType gives the type of data being written; it must be a type declared in the previous declareTypes:owner: message. propertyList points to the data to be sent to the pasteboard server.
This method invokes setData:forType: with a serialized property list parameter.
Returns YES if the data is successfully written or NO if ownership of the pasteboard has changed. Any other error raises an NSPasteboardCommunicationException.


------------8<--------------8<-------------8<----------

FAIK, the current implementation is buggy in the following case:

If there is a NSURL in the propertylist parameter (a NSArray for instance), the data is not successfully written _AND_ YES is returned.

No exceptions are raised.

(Mac OS X 10.4.8 (PPC))

N.B.: it could be nice if there was a constant for @"CFBundleInfoPlistURL"...


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: [NSPasteboard setPropertyList:forType:] is buggy...
      • From: "Julien Jalon" <email@hidden>
  • Prev by Date: Modifying the dragged image during a drag / drop operation
  • Next by Date: Re: Modifying the dragged image during a drag / drop operation
  • Previous by thread: Re: Modifying the dragged image during a drag / drop operation
  • Next by thread: Re: [NSPasteboard setPropertyList:forType:] is buggy...
  • Index(es):
    • Date
    • Thread