views:

350

answers:

3

I'm in xcode debugging my iphone application. when i get to a break point and I roll over my object and properties of that object say "out of scope" instead of their respective values.

Here's what I do:

I have inited a view with nib name (initwithnibname).

Then set the property of that view to the object that I want.

I have placed the breakpoint in the viewwillappear method.

I rollover my reference to the variable that was is my property.

All properties in the object say "out of scope"

Does anyone know why this is happening?

A: 

Not used XCode either, but it sounds like you're using a variable that is not in scope - say referring to a local variable in a method from another method etc...

Find where the variable is declared - that should give you a big clue...

Martin Milan
Also, if you declare something inside a if statement, or loop of some kind, then outside that loop, you won't be able to use or see it.
Tom H
A: 

These are released objects.

Michael Kessler
A: 

You said that you "set the property of the view to the object that I want".

Could you clarify on this, did you mean you set the nib file File's Owner to your View Controller class?

What specific errors did you receive in the console?

Chromium