Hi. I am fairly new to Cocoa programming and I have a problem that I have not been able to figure out. I have a simple little Cocoa app consisting of a TableView and a multiline TextField and I want to be able to drop a file anywhere on the app. I have made an app that would accept drop on a textfield, but now I want to be able to drop it anywhere on the window.
First I tried selecting the main view in Interface Builder and changing the class to DroppableView (a class I made subclassed from NSView to implement the drag/drop handlers) but initWithFrame would never fire when I run the program.
Then I returned the class to NSView and covered it with a CustomView control and set its class to DroppableView. This would fire the initWithFrame controls, but the TableView and TextField that I had on top of the control were no longer visible.
This shouldn't be that complicated of a thing to do, but I am out of ideas. Any help?
jorj
First I tried selecting the main view in Interface Builder and changing the class to DroppableView (a class I made subclassed from NSView to implement the drag/drop handlers) but initWithFrame would never fire when I run the program.
Then I returned the class to NSView and covered it with a CustomView control and set its class to DroppableView. This would fire the initWithFrame controls, but the TableView and TextField that I had on top of the control were no longer visible.
This shouldn't be that complicated of a thing to do, but I am out of ideas. Any help?
jorj