Re: Tons of fun w/NSComboBox
Re: Tons of fun w/NSComboBox
- Subject: Re: Tons of fun w/NSComboBox
- From: Mike Brinkman <email@hidden>
- Date: Wed, 13 Aug 2003 08:11:27 -0400
I just downloaded AppKiDo, it's pretty cool. A bit easier than using PB or
Safari to browse. Thanks for the tip!
Still, I'm not sure how this all works.
I read the "Combo Boxes" programming topic, and it said "Every method in
NSComboBoxCell has a cover in NSComboBox. (A cover is a method of the same
name that calls the original method.)"
If I look up NSComboBox, I don't find the method:
(NSString *)completedString:(NSString *)substring
If I override (NSString *)completedString:(NSString *)substring, does it
apply to every NSComboBox on my app, or does it apply only to a particular
NSComboBox? Let's say I've got an NSComboBox called myBox. How do I use
completedString with that? Would it be something like:
[myBox completedString:[myBox stringValue]] ?
I simply want the compare for the auto-completion just to ignore case. If I
override the (NSString *)completedString:(NSString *)substring method, how
do I insure that I still get the same functionality?
This seems like a lot of work for something pretty trivial. Especially when
so many Foundation classes have some sort of easy method for doing what I'm
asking for, like NSString's:
-(NSComparisonResult)caseInsensitiveCompare:(NSString *)aString
Any further light shed on this subject would be greatly appreciated.
On 8/12/03 11:03 PM, "tony cate" <email@hidden> wrote:
>
Looks like you would have to override the NSComboBoxCell method: -
>
(NSString *)completedString:(NSString *)substring.
>
>
AppKiDo is great for this kind of thing.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.