• 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
(update)Re: NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


References: 
 >NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:) (From: Teunis Peters <email@hidden>)

  • Prev by Date: NSLayoutManager looping with custom NSTextContainer
  • Next by Date: Re: Framework Nibs Not Loading 10.4 to 10.3
  • Previous by thread: NSFilePromisePboardType example that works with MacOSX 10.3 (also problem with pasteboard:provideDataForType:)
  • Next by thread: Bindings Model<->View Only? [was Re: Cocoa bindings one- or bi-directional]
  • Index(es):
    • Date
    • Thread