Re: NSView/NSTableView question

2010-12-09 Thread Benjamin Stiglitz
> Great thanks for the replies. I was also thinking about this but I might try > to add a little bit of graphics too using NSBezierPath would it still work? > But at least these 2 ideas can keep me going until I get this working right. > Thanks! You can also do this in a subclass of NSTableV

Re: NSView/NSTableView question

2010-12-05 Thread Rick C.
Great thanks for the replies. I was also thinking about this but I might try to add a little bit of graphics too using NSBezierPath would it still work? But at least these 2 ideas can keep me going until I get this working right. Thanks! On Dec 6, 2010, at 4:58 AM, Peter Hudson wrote: > If

NSView/NSTableView question

2010-12-05 Thread Peter Hudson
If the size of the table permits, when the table is empty, have the datasource return for one cell the string "Drop Files Here" When the user has dropped a file, you can adjust what the datasource returns to not show the string. Further games with setting the row height and using an attribut

Re: NSView/NSTableView question

2010-12-05 Thread Robert Martin
Another approach that might be simpler: Set up a tabbed view with 2 views - one to receive drops with all your instructions, and the other to display the table. Switch to the drop view when the table row count is 0, and switch back to the table tab when valid drops are registered. On Dec 5, 20

NSView/NSTableView question

2010-12-05 Thread Rick C.
Hello, In my project I have a table view on the main window which accepts drops and the dropped files will show up as a list. All works normally at this point. However as an "afterthought" I was thinking to put an NSView on top with a graphic stating "Drop files here" or something to that eff