Problem with script/generate controller?

1 view
Skip to first unread message

Joe

unread,
Mar 17, 2008, 11:58:18 AM3/17/08
to Rucola
Hi guys,

Running a script/generate controller MyController causes the
classes.nib file to specify the superclass string as NSObject.
Shouldn't this be RCController?

Also, I don't seem to get the new controller in IB 3. Shouldn't it
show up there by default when this new controller is added (provided
that I reload)?

Thanks,
Joe

Joe

unread,
Mar 17, 2008, 1:41:59 PM3/17/08
to Rucola
Running rake ib:update changes the superclass to RCController, but I
still don't seem to get the class in IB.

Eloy Duran

unread,
Mar 17, 2008, 2:42:41 PM3/17/08
to ruc...@googlegroups.com
Hi Joe,

The instantiation of an object should always be done you, the user.
Trying to mess with the serialized data blob in the nib/xib is not
something that you'd want.

In IB3 a lot has changed with regards to defining classes.
If a new class is added it will needs to be instantiated otherwise the
class definition will be lost.
So you need to instantie your new controller, once that's done you can
update it's definition from that point on.

Also I'm not sure if you mean that you can't find it all, if so;
add a NSObject to your project and set it's class to your class,
that's it.

- Eloy

Joe

unread,
Mar 17, 2008, 3:07:34 PM3/17/08
to Rucola
Eloy,

Thanks, I actually had done what you suggested, and everything is
working great.

Joe
Reply all
Reply to author
Forward
0 new messages