• 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: Convert Charatcers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert Charatcers


  • Subject: Re: Convert Charatcers
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 9 Mar 2004 20:49:39 +0100

On Tuesday, Mar 9, 2004, at 18:55 Europe/Prague, Allan Odgaard wrote:

Hint: if efficiency matters, you can a) sort the table alphabetically and use binary search to find the code and b) use strncmp so that the name passed to map_name_to_char doesn't need to be null-terminated.

c) instead of the plain-C solution go Cocoa, using an NSDictionary created from a XML or plist-format file, which would also--well, IMHO, of course--allow for much cleaner code and much easier maintenance and upgrading.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.


References: 
 >Re: Convert Charatcers (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: OK, but what do 'attributes' look like?
  • Next by Date: NSTableView eating keyDowns?
  • Previous by thread: Re: Convert Charatcers
  • Next by thread: resizing a window before displaying
  • Index(es):
    • Date
    • Thread