Re: NSTableView empty selection not working
Re: NSTableView empty selection not working
- Subject: Re: NSTableView empty selection not working
- From: PCWiz <email@hidden>
- Date: Wed, 19 Aug 2009 09:39:32 -0600
I checked the Array Controller and it had the "Avoid Empty Selection"
setting checked. So I unchecked it, saved, and tried again. It still
doesn't work. And now I have another problem (once again, out of the
blue). I have it set to "Select Inserted Objects" in my Array
Controller, and objects are no longer being selected when they are
inserted. This was working fine yesterday, and I haven't changed
anything since then.
I am confused as to why this randomly started happening. The only
delegate methods I'm using for the table are these (which I'm sure
have nothing to do with my problem):
- (BOOL)tableView:(NSTableView *)aTableView
writeRowsWithIndexes:(NSIndexSet *)rowIndexes
toPasteboard:(NSPasteboard *)pboard
- (NSDragOperation)tableView:(NSTableView*)tv
validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row
proposedDropOperation:(NSTableViewDropOperation)op
- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info
row:(int)row
dropOperation:(NSTableViewDropOperation)op
Those are just a few methods I use for drag and drop. If anyone
wants the source code for the app then I can send it to them.
On 2009-08-18, at 8:00 PM, I. Savant wrote:
On Tuesday, August 18, 2009, PCWiz <email@hidden> wrote:
Hi,
All of a sudden empty selection on my NSTableView won't work. I
have it set to allow empty selection in IB, and I've also tried
programmatically setting it with setAllowsEmptySelection: but it
doesn't work. Something always has to be selected
Are you using an array controller? Both it and the table view have
such a setting.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden