Re: Modal Dialog and Drag & Drop in a NSTableView
Re: Modal Dialog and Drag & Drop in a NSTableView
- Subject: Re: Modal Dialog and Drag & Drop in a NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 16 Jun 2005 00:41:50 +0200
On mercredi, juin 15, 2005, at 10:56 PM, Corbin Dunn wrote:
Any idea?
This should work; have you tried it when it isn't modal to narrow down
that issue?
Sure, with a makeKeyAndOrderFront:, it just works.
And, exactly how and what are you registering for drag and drop?
[IBarray_ registerForDraggedTypes:[NSArray
arrayWithObjects:NSFilenamesPboardType,nil]];
I know it could be simplified to [NSArray
arrayWithObject:NSFilenamesPboardType] but when things don't work, you
don't go to simplification first.
Is it possible to do drag and drop in a Modal dialog (I must confess
I haven't find any Cocoa application doing this for the moment)?
Nearly every Cocoa app displays this feature.
Take TextEdit for example. Cmd-O (modal window), drag from finder any
file and drop it into there.
I wouldn't bet my right hand on this as there's some probabilities that
the Open and Save dialog in this OS version could be a a mixed of Cocoa
and Carbon (WWDC 2002 Mac OS X State of the Union could confirm it but
I don't have the DVD to check).
_______________________________________________
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