• 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
Character value of 'Enter' and 'Return' Key ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Character value of 'Enter' and 'Return' Key ?


  • Subject: Character value of 'Enter' and 'Return' Key ?
  • From: "Vaibhav Machhar" <email@hidden>
  • Date: Tue, 28 Mar 2006 10:46:19 +0530

Hi,

 Im using one function [(NSString*) str characterAtIndex:(some index)] . I
have a text view where I can enter space,enter and return characters. I
wanted to know the value of 'Enter' and 'Return' key.

 Sample code that Im using is --

  int i ,index = 0,len = [str length];
    for(i=0; i<len; i++)
    {
        if( [str characterAtIndex:i] == 32) // this 32 = for Space.
            index++;
        else
            break;
    }

Thanks and Regards
Vaibhav
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Character value of 'Enter' and 'Return' Key ?
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
  • Next by Date: Copy object
  • Previous by thread: Re: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
  • Next by thread: Re: Character value of 'Enter' and 'Return' Key ?
  • Index(es):
    • Date
    • Thread