• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tons of fun w/NSComboBox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • RE: Tons of fun w/NSComboBox
      • From: "Jonathan E. Jackel" <email@hidden>
References: 
 >Re: Tons of fun w/NSComboBox (From: tony cate <email@hidden>)

  • Prev by Date: scribbling
  • Next by Date: NSProgressIndicator not updating
  • Previous by thread: Re: Tons of fun w/NSComboBox
  • Next by thread: RE: Tons of fun w/NSComboBox
  • Index(es):
    • Date
    • Thread