Re: NSPasteboard
Re: NSPasteboard
- Subject: Re: NSPasteboard
- From: David Blanton <email@hidden>
- Date: Tue, 03 Jun 2003 00:02:43 -0600
The problem was a retain issue. All is well.
[oddToggleData retain];
On 6/2/03 10:18 PM, "David Blanton" <email@hidden> wrote:
>
The following code SIGBUSes
>
>
>
copied = [thePasteboard setData: oddToggleData forType:NSTIFFPboardType];
>
>
Where
>
>
oddToggleData = [NSData dataWithContentsOfFile: tiffPath ];
>
>
tiffPath = [mainBundle pathForResource:oddToggleImage ofType:@"tif"]];
>
>
I have gotten a general pasteboard and declared its types as
>
NSTIFFPboarbType and NSStringPboardType.
>
>
>
I am able to copy strings with no problem as
>
>
copied = [thePasteboard setString:oddToggleImage
>
forType:NSStringPboardType];
>
>
>
Any help is appreciated!
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >NSPasteboard (From: David Blanton <email@hidden>) |