Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 26, 2011, 01:49 AM   #1
xingworld
macrumors newbie
 
Join Date: Jan 2011
How to change a string to UPCASE or lowercase in xcode? thanks!

How to change a string to UPCASE or lowercase in xcode? thanks!
xingworld is offline   0 Reply With Quote
Old Jan 26, 2011, 10:00 AM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Assuming you have an NSString, please read the class reference for it. There are two instance methods it has that are specifically built for what you're looking for.

P.S. And by "in Xcode", we have to assume you mean "using Objective-C". If not, you should let us know. Remember, accuracy is important, both in programming and getting help in a programming forum.
__________________
dejo is online now   0 Reply With Quote
Old Jan 27, 2011, 08:40 AM   #3
xingworld
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by dejo View Post
Assuming you have an NSString, please read the class reference for it. There are two instance methods it has that are specifically built for what you're looking for.

P.S. And by "in Xcode", we have to assume you mean "using Objective-C". If not, you should let us know. Remember, accuracy is important, both in programming and getting help in a programming forum.
Thank you very much.
I'm sorry that I don't express my meaning accurately.
My meaning is converting a selected text to upcase or lowercase by some operation/command in Xcode IDE.
Because I have not find a way to convert selected text into upcase or lowercase in operation menu.
xingworld is offline   0 Reply With Quote
Old Jan 27, 2011, 09:02 AM   #4
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
By default "lowercase word" and "uppercase word" are unbound in Preferences -> Key Bindings -> Text Key Bindings. Just create a new set and bind them to something.

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is online now   0 Reply With Quote
Old Jan 28, 2011, 09:19 AM   #5
xingworld
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by balamw View Post
By default "lowercase word" and "uppercase word" are unbound in Preferences -> Key Bindings -> Text Key Bindings. Just create a new set and bind them to something.

B
Thank you, thank you very much. I find it and set it successfully.
xingworld is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
xcode process launch failed: invalid host string: '(null)' dede95064 Mac Programming 6 Oct 1, 2014 12:21 PM
iPad: Change the 'iPad' string in status bar HenryLong Jailbreaks and iOS Hacks 3 Feb 2, 2014 03:43 PM
XCode at it *again*: invalid host string: 'localhost' Plazmotech Mac Programming 7 Dec 25, 2013 06:47 PM
Search a string for a String of a specific format. ncaissie iPhone/iPad Programming 19 Nov 15, 2013 10:42 AM
xCode label text color change kushalashok Web Design and Development 1 Feb 15, 2013 05:22 AM

Forum Jump

All times are GMT -5. The time now is 01:37 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC