Interface Builder 3.0

  • Hi there,

    hard to get used to IB 3.0, strange beast...

    I add an NSText field in my .h class which I had instantiated within
    IB with the older version of IB. Appears fine in 3.0 as an outlet,
    link it, but when debugging I can see the object hasn't been
    instanciated properly (value shows 0x0). Tried File -> Syncronize with
    xCode and Read class file but no go...

    Any help appreciated.
  • Can you give us some more information? Where are you in your
    application when you see the 0x0 value? Remember that outlets aren't
    instantiated until the nib is loaded, so if you're looking anywhere
    before awakeFromNib, you're going to see 0x0 whether or not things
    went well. It sounds like IB synchronized correctly with Xcode anyway.

    Hank

    On Nov 16, 2007, at 9:13 AM, Micha Fuhrmann wrote:

    > Hi there,
    >
    > hard to get used to IB 3.0, strange beast...
    >
    > I add an NSText field in my .h class which I had instantiated within
    > IB with the older version of IB. Appears fine in 3.0 as an outlet,
    > link it, but when debugging I can see the object hasn't been
    > instanciated properly (value shows 0x0). Tried File -> Syncronize
    > with xCode and Read class file but no go...
    >
    >
    > Any help appreciated.
    >

    Hank Heijink
    <hank.list...>
  • > I add an NSText field in my .h class which I had instantiated within
    > IB with the older version of IB. Appears fine in 3.0 as an outlet,
    > link it, but when debugging I can see the object hasn't been
    > instanciated properly (value shows 0x0).

    Twice now I've had an outlet that I wired up using the old ctrl-drag
    method "not take". When I inspected its value in the debugger, it
    reported itself as null. In both cases, linking it by right-clicking
    and dragging from the HUD "fixed" the problem -- but being unable to
    reliably reproduce the issue, I couldn't tell you why.

    Just putting it out there,
    -Joshua Emmons
  • That worked indeed.

    Micha

    On Nov 16, 2007, at 16:09, Joshua Emmons <skia...> wrote:

    >> I add an NSText field in my .h class which I had instantiated
    >> within IB with the older version of IB. Appears fine in 3.0 as an
    >> outlet, link it, but when debugging I can see the object hasn't
    >> been instanciated properly (value shows 0x0).
    >
    > Twice now I've had an outlet that I wired up using the old ctrl-drag
    > method "not take". When I inspected its value in the debugger, it
    > reported itself as null. In both cases, linking it by right-clicking
    > and dragging from the HUD "fixed" the problem -- but being unable to
    > reliably reproduce the issue, I couldn't tell you why.
    >
    > Just putting it out there,
    > -Joshua Emmons
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today