Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ryans79

macrumors regular
Original poster
Apr 12, 2009
226
0
Hello,

I am new to Macs, and new to xCode as well so kindly excuse if this is a "everybody knows" question...

When start to type for example "CGRectMake"
xcode automatically code completes it before i am even half way through, then i get the types of data i am supposed to enter
something like
Code:
CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)

as you can see it takes 4 parameters, i usually click on each parameter and enter its value... is there some where to jump to each parameter without using the mouse?

eg:
like when on a webpage with a form how you press tab to jump from one textbox etc to another?

°°
ryan
 
I spent 15 minutes a year ago or so trying different cmd-tab, etc commands and couldn't figure anything out. I hope someone tells me I'm wrong though and there is a way.
 
I spent 15 minutes a year ago or so trying different cmd-tab, etc commands and couldn't figure anything out. I hope someone tells me I'm wrong though and there is a way.

Heh! Hello my windows comrade!
Glad to know i'm not the only one :D
Yep, i tried a few combinations myself with no luck...

Theres gotta be a way or its just silly...
 
Hello,

I am new to Macs, and new to xCode as well so kindly excuse if this is a "everybody knows" question...

When start to type for example "CGRectMake"
xcode automatically code completes it before i am even half way through, then i get the types of data i am supposed to enter
something like
Code:
CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)

as you can see it takes 4 parameters, i usually click on each parameter and enter its value... is there some where to jump to each parameter without using the mouse?

eg:
like when on a webpage with a form how you press tab to jump from one textbox etc to another?

°°
ryan


Hello Ryan,

Depends upon your "Key Binding" as set in the Xcode Preference.
Assuming the default Control-/ should do what you want.
 
Hmm, Possibly I changed it at some point.

It's Edit > Select Next Placeholder and whatever binding you have for that.

Apparently the Xcode default key bindings has control / and the Metrowerks compatible has control , for Select Next Placeholder.
 
I told you about the ctrl + / keyboard shortcut a few weeks ago in your "What is this warning/error? (Newb warning)" thread when the use of codesense was mentioned.

Nice to see my help is taken notice of.....
 
I told you about the ctrl + / keyboard shortcut a few weeks ago in your "What is this warning/error? (Newb warning)" thread when the use of codesense was mentioned.

Nice to see my help is taken notice of.....

Sorry about that, the problem is I am using a Nordic keyboard and that does not work... its a bit of a strange layout.
Your help in the old thread was most helpful and i still use a lot of those tips:)
 
Ok, some old questions and a fresh batch of new ones :)

Under edit I couldnt find those key bindings, this is what i got under edit:



This is what i got under keyboard shortcuts:


This is my weird ass keyboard


took me some time to get used to it and understand it (google helped) for example square brackets are alt 8 and 9, curly braces are alt+shift 8and9, its just a slightly funny setup imho.

Doing a command (apple key) plus comma got me this window pop up, i thought it would help you guys help me...


And finally, question, what does this key do? i have never used it so far and never seen it on a windows keyboard.



Oops, one last question, i know the Mac has bluetooth but for the love of god i cant get my nokia to connect to it via bluetooth to transfer pics... is the Mac's bluetooth for something specific that it wont let me connect via my mobile's BT?

Thanks!
Ryan

Edit, sorry about the quality of the pics, taken out via my mobiles camera, although thanks to mccannmarc I sometimes do take snapshots/screenshots on the Mac
 
Under edit I couldnt find those key bindings, this is what i got under edit:
Alright, looks like I'm gonna have to step you all the way through this:
Xcode > Preferences. Key Bindings. Menu Key Bindings. Action: Edit > Select Next Placeholder.

What be there?

EDIT: Oops, missed this part:
Doing a command (apple key) plus comma got me this window pop up, i thought it would help you guys help me...
Scroll down to where it says "Select Next Placeholder".
 

Attachments

  • Picture 1.png
    Picture 1.png
    68.3 KB · Views: 85
Alright, looks like I'm gonna have to step you all the way through this:
Xcode > Preferences. Key Bindings. Menu Key Bindings. Action: Edit > Select Next Placeholder.

What be there?

EDIT: Oops, missed this part:

Scroll down to where it says "Select Next Placeholder".


Sorry about that, guess i should have warned you I am totally new to this so baby steps are needed.

Anyways, couldnt find "select next placeholder", heres what i did find:
 
Sorry about that, guess i should have warned you I am totally new to this so baby steps are needed.

Anyways, couldnt find "select next placeholder", heres what i did find:
Please scroll down until the top-level action View is visible. Still no "Select Next Placeholder"?

Ah! I see it now!

See that "Select Next Placeholder" is grayed out, but has ^/ ? That's your shortcut!
 
Got one!

It show it as ^/

but if i can only reach my slash by using the shift+7 how do i work it?
 
ctrl + shift + 7

Yay! It works!

Would appreciate you tackling the other 2 questions above if you have time :p
To remind you:
And finally, question, what does this key do? i have never used it so far and never seen it on a windows keyboard.

Oops, one last question, i know the Mac has bluetooth but for the love of god i cant get my nokia to connect to it via bluetooth to transfer pics... is the Mac's bluetooth for something specific that it wont let me connect via my mobile's BT?

Thanks!
 
And finally, question, what does this key do? i have never used it so far and never seen it on a windows keyboard.

Ryan,

Keyboard symbols can be looked up within the help system.

Goto the Finder, click the "Help" Menu and type "Key Symbols".

Select the first result in the list that appears and you should be
presented with a Key/Symbol table.
 
ctrl + shift + 7 is basically impossible to use for this purpose, IMO. I guess you're not using a US English keyboard. Actually control-/ and control-, are also a pain to use on a US keyboard because they require both hands.

I recommend you find some convenient two character command key combination to use for this purpose. Best would be a combo that uses one hand.
 
I guess you're not using a US English keyboard.
Um, yeah, like ryans79 already said...
...the problem is I am using a Nordic keyboard...

Actually control-/ and control-, are also a pain to use on a US keyboard because they require both hands.

I recommend you find some convenient two character command key combination to use for this purpose. Best would be a combo that uses one hand.
I don't know about you but I find I do a lot of coding with both hands on the keyboard, thus the advantage of using keyboard shortcuts.
 
I don't know about you but I find I do a lot of coding with both hands on the keyboard, thus the advantage of using keyboard shortcuts.

Yes, of course. Maybe you're a better typist than me but coordinating three fingers on two command keys plus a character while I have to look at the screen is an (unnecessary) effort. Frankly, I can't find the control key without looking. My suggestion is make a better key combo. Up to you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.