Results 1 to 2 of 2
  1. #1

    Member Since
    Jun 01, 2009
    Interface Builder Help
    I feel like a total dummy. I'm very new to xcode/interface builder development. I've done a bunch of other development though so I'm not some total newb. However, Interface Builder is defeating me. All I want to know how to do is change the instance name of a Text Field I dragged onto a window. They all seem to be called NSTextField(0). However, for the life of me, I can't figure out how to change that. I'm in XCode 2.5 on OS X 10.4. Thanks.

  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    As far as I know, you can't set a name for an IB screen object.

    I think you mean the outlet name. That is done by dragging from the screen object to a controller object that appears in the nib window that holds those values. What you are doing is associating the screen object with a variable in the controlling object that will communicate with your screen object.

    Perhaps there is a clue at I think this 2nd of two tutorials is what you are interested in. The bonus is this tutorial looks to be from your version of the dev tools.

    (If you mean you want the class to be some other non standard class, then you have to create a subclass in your project, read the class files in via the File menu on IB, and then change the class identity via the info panel for the textfield on the window. Well, that is in IB 3.1.2. I can't recall the details for your version.)

    I recommend Cocoa(R) Programming for Mac(R) OS X, by Aaron Hillegass. You want the second edition, as the third edition released last year is for the newer version of the tools which look and act differently.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about interface builder
    By mag709 in forum iOS Development
    Replies: 1
    Last Post: 03-14-2012, 02:46 PM
  2. Interface builder fonts
    By counciler in forum macOS - Development and Darwin
    Replies: 3
    Last Post: 01-25-2012, 02:59 PM
  3. Interface Builder Error
    By Connell in forum iOS Development
    Replies: 5
    Last Post: 08-17-2011, 02:45 PM
  4. Interface Builder error
    By sagarshivam in forum iOS Development
    Replies: 9
    Last Post: 06-27-2011, 02:44 AM
  5. Interface Builder Help
    By Babkockdood in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 01-22-2010, 07:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts