views:

250

answers:

1

while typing in Xcode, (objective - c for iPhone dev)

Suppose I write

[mySprite

[[here mySprite is an object of sprite class ( cocos2d - for game development ). ]]

After writing this, if I press ## esc ## key.

It will show me all the methods.

Lets take an example,

If I am using [mySprite position]; method,

How can I came to know, what actually ## position ## method returns?

Let's take an example of other Integrated development environment.

.net provides a tool tip, when we press ctrl + space, it will show all the properties & methods with it's signature & other hints. Does x Code provides the same?

( actually, Before being a iphone developer - i was .net trainee developer, So, actually I am expecting something like .net )

+5  A: 

In Xcode, open Preferences, go to Code Sense, and check "Show arguments in pop-up list". Now the list will show return types and parameters.

Cory Kilger
Yup, and I just checked 3.1 and the option exists.
Dana
But, Problem is something different. When we press ESC, we are getting the entire list. Suppose we are using sprite class object, it should list only sprite class instance level methods.
sugar
isn't that possible?
sugar
It seems to work for me. If I do type "[Sprite " and hit escape it takes me to spriteWithFile:, whereas if I type "[[Sprite alloc] " and hit escape it takes me to initWithFile:.
Cory Kilger
Yup ! it's working as you said. Thanks a lot for sharing your knowledge, sir.
sugar