(update)Re: NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:)
(update)Re: NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:)
- Subject: (update)Re: NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:)
- From: Teunis Peters <email@hidden>
- Date: Fri, 27 May 2005 08:56:29 -0700
On May 27, 2005, at 6:56 AM, Teunis Peters wrote:
first, the problem with pasteboard:provideDataForType: - it's only
called when the program closes (???) am I missing something important
here?
still happens - sometimes. It's inconsistent
NSFilenamesPboardType is still broken.
NSFilePromisePboardType I've got working mostly (barring weirdness
above and some other long delays). I'm not sure I can explain the
problems here.
I'm doing some "black magic" with -
(void)dragImage:at:offset:event:pasteboard:source:slideBack that's got
quite a bit of this working actually.
This function specifically is frequently getting called AFTER the
program closes. So does namesOfPromisedFilesDroppedAtDestination,
sometimes.
I'm testing with Finder on OSX10.3 - am I just hitting some weirdness?
- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation {
if (dragURL && dragFile && dragRef) {
NSString* fname = [[dragURL path]
stringByAppendingPathComponent:[dragRef name]];
d = [get data from server, after reconnecting if needed]
[d writeToFile:fname atomically:NO];
}
[dragURL release]; dragURL = nil; [dragFile release];
dragFile = nil; [dragRef release]; dragRef = nil;
}
PS: am assuming that people have threaded email readers, so I'm not
bothering to quote most context.
PPS: The NSFilePromisePboardType is neat but this all could just be it
being broken on 10.3. The source is actually (at the moment) an
NSMatrix but will not remain such. I would really like to know even
how to -debug- the problem with NSFilenamesPboardType... I'm really
out of ideas there.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden