NSTableView: Type selecting in one column but not another

2009-04-29 Thread Eric Gorr
I was wondering if it was possible to get finer control over what type  
selecting searches in a row.


I have two columns in my table which both contain text. It only makes  
sense to match what the user is typing to the text found in the first  
column.


Unfortunately, I cannot seem to find a way to disable type selection  
on the second column. It seems to be an all-or-nothing feature.


I am certain I could handle this myself by disabling the feature and  
then modifying the key down method to do the right thing, but was  
hoping I had missed something.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView: Type selecting in one column but not another

2009-04-29 Thread I. Savant
On Wed, Apr 29, 2009 at 11:43 AM, Eric Gorr mail...@ericgorr.net wrote:
 I was wondering if it was possible to get finer control over what type
 selecting searches in a row.

 I have two columns in my table which both contain text. It only makes sense
 to match what the user is typing to the text found in the first column.

 Unfortunately, I cannot seem to find a way to disable type selection on the
 second column. It seems to be an all-or-nothing feature.

  Have you read the documentation? The
-tableView:typeSelectStringForTableColumn:row: method documentation
says:

Return Value
A string that is used in type select comparison for row and
tableColumn. Return nil if the row or tableColumn should not be
searched.

--
I.S.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView: Type selecting in one column but not another

2009-04-29 Thread Ashley Clark

On Apr 29, 2009, at 10:43 AM, Eric Gorr wrote:

I was wondering if it was possible to get finer control over what  
type selecting searches in a row.


I have two columns in my table which both contain text. It only  
makes sense to match what the user is typing to the text found in  
the first column.


Unfortunately, I cannot seem to find a way to disable type selection  
on the second column. It seems to be an all-or-nothing feature.


I am certain I could handle this myself by disabling the feature and  
then modifying the key down method to do the right thing, but was  
hoping I had missed something.


Implement -tableView:typeSelectStringForTableColumn:row: on your  
delegate and only return a value for the columns you're interested in  
having type select work with.



Ashley

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView: Type selecting in one column but not another

2009-04-29 Thread Eric Gorr

On Apr 29, 2009, at 12:05 PM, Ashley Clark wrote:


On Apr 29, 2009, at 10:43 AM, Eric Gorr wrote:

I was wondering if it was possible to get finer control over what  
type selecting searches in a row.


I have two columns in my table which both contain text. It only  
makes sense to match what the user is typing to the text found in  
the first column.


Unfortunately, I cannot seem to find a way to disable type  
selection on the second column. It seems to be an all-or-nothing  
feature.


I am certain I could handle this myself by disabling the feature  
and then modifying the key down method to do the right thing, but  
was hoping I had missed something.


Implement -tableView:typeSelectStringForTableColumn:row: on your  
delegate and only return a value for the columns you're interested  
in having type select work with.


Ah. Thank you. Don't know how I missed that.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com