Fwd: Interface Builder 3 -- Completely New!

  • Hi guys
    In the new IB3, how i can create files for my new class?File-Write
    Class Files... doesn´t insert them into the targets so Xcode doesn´t
    include them.
    In IB2 you could create classes and their files for Xcode with a few
    clicks.
    I can do this by creating the class before in Xcode and then, in IB3,
    drag a NSOject and set it to my class, but I have to create Outlets
    and Actions in Xcode, is this the correct way??
    Thanks a lot.
  • Hit the identity tab in the IB inspector, with your class selected.
    You should be able to add/remove outlets and actions there. You can
    then write out your class files from there.

    On Oct 27, 2007, at 9:28 AM, Alejandro Moreno Murillo wrote:

    > Hi guys
    > In the new IB3, how i can create files for my new class?File-Write
    > Class Files... doesn´t insert them into the targets so Xcode doesn´t
    > include them.
    > In IB2 you could create classes and their files for Xcode with a few
    > clicks.
    > I can do this by creating the class before in Xcode and then, in
    > IB3, drag a NSOject and set it to my class, but I have to create
    > Outlets and Actions in Xcode, is this the correct way??
    > Thanks a lot.
  • Thanks Colin.
    But how i write out them???File->Write Class Files... doesn´t include
    them into the targets for Xcode.
    Thanks

    El 27/10/2007, a las 19:10, Colin Cornaby escribió:

    > Hit the identity tab in the IB inspector, with your class selected.
    > You should be able to add/remove outlets and actions there. You can
    > then write out your class files from there.
    >
    > On Oct 27, 2007, at 9:28 AM, Alejandro Moreno Murillo wrote:
    >
    >> Hi guys
    >> In the new IB3, how i can create files for my new class?File-Write
    >> Class Files... doesn´t insert them into the targets so Xcode doesn
    >> ´t include them.
    >> In IB2 you could create classes and their files for Xcode with a
    >> few clicks.
    >> I can do this by creating the class before in Xcode and then, in
    >> IB3, drag a NSOject and set it to my class, but I have to create
    >> Outlets and Actions in Xcode, is this the correct way??
    >> Thanks a lot.
    >
  • I don't think you can. I've noticed IB3 is not really a team player
    with XCode 3 in this department. I generally create my class files
    from XCode, so I don't run into this issue. But I've noticed that when
    I save a new nib into a project directory, it's not longer added into
    the XCode project like IB2/XCode2 used to do. Maybe this will be a
    feature for IB3.1? :)

    On Oct 27, 2007, at 10:26 AM, Alejandro Moreno Murillo wrote:

    > Thanks Colin.
    > But how i write out them???File->Write Class Files... doesn´t
    > include them into the targets for Xcode.
    > Thanks
    >
    >
    > El 27/10/2007, a las 19:10, Colin Cornaby escribió:
    >
    >> Hit the identity tab in the IB inspector, with your class selected.
    >> You should be able to add/remove outlets and actions there. You can
    >> then write out your class files from there.
    >>
    >> On Oct 27, 2007, at 9:28 AM, Alejandro Moreno Murillo wrote:
    >>
    >>> Hi guys
    >>> In the new IB3, how i can create files for my new class?File-Write
    >>> Class Files... doesn´t insert them into the targets so Xcode doesn
    >>> ´t include them.
    >>> In IB2 you could create classes and their files for Xcode with a
    >>> few clicks.
    >>> I can do this by creating the class before in Xcode and then, in
    >>> IB3, drag a NSOject and set it to my class, but I have to create
    >>> Outlets and Actions in Xcode, is this the correct way??
    >>> Thanks a lot.
    >>

  • Hey Colin -

    You can also copy and paste, or drag and drop the table view rows from
    the action and outlet lists into source files.

    Just a tip -
    Jon Hess

    On Oct 27, 2007, at 10:10 AM, Colin Cornaby wrote:

    > Hit the identity tab in the IB inspector, with your class selected.
    > You should be able to add/remove outlets and actions there. You can
    > then write out your class files from there.
    >
    > On Oct 27, 2007, at 9:28 AM, Alejandro Moreno Murillo wrote:
    >
    >> Hi guys
    >> In the new IB3, how i can create files for my new class?File-Write
    >> Class Files... doesn´t insert them into the targets so Xcode doesn
    >> ´t include them.
    >> In IB2 you could create classes and their files for Xcode with a
    >> few clicks.
    >> I can do this by creating the class before in Xcode and then, in
    >> IB3, drag a NSOject and set it to my class, but I have to create
    >> Outlets and Actions in Xcode, is this the correct way??
    >> Thanks a lot.

  • On Oct 27, 2007, at 10:39 AM, Colin Cornaby wrote:

    > I don't think you can. I've noticed IB3 is not really a team player
    > with XCode 3 in this department. I generally create my class files
    > from XCode, so I don't run into this issue. But I've noticed that
    > when I save a new nib into a project directory, it's not longer
    > added into the XCode project like IB2/XCode2 used to do. Maybe this
    > will be a feature for IB3.1? :)

    It's true, IB 3.0 won't insert files into your Xcode projects. There
    is an alternative though. Now you can add new nib files to your Xcode
    project from Xcode. The "Add -> New Files…" dialog has a full range of
    nibs that you can use as starting points when extending your
    interface. For now, if you create a new nib or class in IB, you'll
    have to add it to your xcode project manually with the "Add ->
    Existing Files…" dialog.

    Jon Hess

    >
    >
    > On Oct 27, 2007, at 10:26 AM, Alejandro Moreno Murillo wrote:
    >
    >> Thanks Colin.
    >> But how i write out them???File->Write Class Files... doesn´t
    >> include them into the targets for Xcode.
    >> Thanks
    >>
    >>
    >> El 27/10/2007, a las 19:10, Colin Cornaby escribió:
    >>
    >>> Hit the identity tab in the IB inspector, with your class
    >>> selected. You should be able to add/remove outlets and actions
    >>> there. You can then write out your class files from there.
    >>>
    >>> On Oct 27, 2007, at 9:28 AM, Alejandro Moreno Murillo wrote:
    >>>
    >>>> Hi guys
    >>>> In the new IB3, how i can create files for my new class?File-
    >>>> Write Class Files... doesn´t insert them into the targets so
    >>>> Xcode doesn´t include them.
    >>>> In IB2 you could create classes and their files for Xcode with a
    >>>> few clicks.
    >>>> I can do this by creating the class before in Xcode and then, in
    >>>> IB3, drag a NSOject and set it to my class, but I have to create
    >>>> Outlets and Actions in Xcode, is this the correct way??
    >>>> Thanks a lot.
    >>>


  • On Oct 27, 2007, at 1:39 PM, Colin Cornaby wrote:

    > I don't think you can <scott - write out files from ib3>. I've
    > noticed IB3 is not really a team player with XCode 3 in this
    > department.

    I believe this is a design pattern that we're discouraging now. I know
    it's something I've thought twice about in all the docs I work on.

    Using Xcode you can have much more flexibility as far as the pre-
    populated content of the new class.. and you get automatic 'syncing'
    with ib3 anyways.
  • On 28.10.2007, at 02:09, Scott Anguish wrote:
    > On Oct 27, 2007, at 1:39 PM, Colin Cornaby wrote:
    >> I don't think you can <scott - write out files from ib3>. I've
    >> noticed IB3 is not really a team player with XCode 3 in this
    >> department.
    >
    > I believe this is a design pattern that we're discouraging now. I
    > know it's something I've thought twice about in all the docs I work
    > on.
    >
    > Using Xcode you can have much more flexibility as far as the pre-
    > populated content of the new class.. and you get automatic
    > 'syncing' with ib3 anyways.

      I love the auto-sync (actually, I think I filed a request for that
    ages ago...), but it would be really convenient if the file-creation
    stuff one can do in Xcode was also available in IB. It's just better
    if I don't have to switch back into Xcode and back from IB constantly
    when I'm laying out a group of NIBs (like windows and panes that get
    loaded into that window dynamically).

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
previous month october 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 31        
Go to today