Re: Problem with NSDragPboard

2008-03-12 Thread Jamie Phelps
Thanks to both of you guys. Chalk another one up for missing info from my textbook. JP On Mar 12, 2008, at 12:12 AM, Jens Alfke wrote: You need to declare the type(s) on the pasteboard, before setting the data. —Jens On Mar 11, 2008, at 11:42 PM, Dave Hersey wrote: The only thing I c

Re: Problem with NSDragPboard

2008-03-11 Thread Jens Alfke
On 11 Mar '08, at 8:13 PM, Jamie Phelps wrote: // Copy string data to the pasteboard. [pb setString:self.string forType:NSStringPboardType]; You need to declare the type(s) on the pasteboard, before setting the data. —Jens smime.p7s Description: S/MIME cryptographic signat

Re: Problem with NSDragPboard

2008-03-11 Thread Dave Hersey
The only thing I can see is that the docs say that you need to send the pasteboard the "types" or "availableTypeFromArray:" selectors before sending "stringForType:", so maybe you're getting screwy log results without that. Does it change if you add a [pb types]; before the last NSLog? -

Problem with NSDragPboard

2008-03-11 Thread Jamie Phelps
Hi, all. I am working on the Hillegass chapter that covers drag and drop, and I have the following method in my code. - (void)writeStringToPasteboard:(NSPasteboard *)pb { NSLog(@"Writing %@ to pasteboard [EMAIL PROTECTED]",self.string, pb); // Copy string data to the pasteboard. [pb