Re: [NSPasteboard setPropertyList:forType:] is buggy...
Re: [NSPasteboard setPropertyList:forType:] is buggy...
- Subject: Re: [NSPasteboard setPropertyList:forType:] is buggy...
- From: "Julien Jalon" <email@hidden>
- Date: Wed, 29 Nov 2006 18:36:44 +0100
Note that NSURL is not a proper property list element (but still, your
point remains)
--
Julien
On 11/29/06, Stephane <email@hidden> wrote:
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
_______________________________________________
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