image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old April 18th, 2008, 04:25 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,452
Viro will become famous soon enoughViro will become famous soon enough
New XCode is confusing

I'm having trouble with the new Xcode, particularly the new Interface Builder. There used to be a set of lozenges which had items called "Instances", "Classes", "Images", "Sounds", "Nib". These are all gone in the new IB and I am at a total loss :O

The first picture is what I'm used to. The 2nd picture is what I am getting. Reading through the Cocoadevcentral tutorial, their Leopard tutorial doesn't mention this change at all. It's all quite perplexing.
Attached Images
File Type: png learncocoa2-newinstance.png (30.2 KB, 8 views)
File Type: png Picture 1.png (35.5 KB, 7 views)
Reply With Quote
  #2  
Old April 18th, 2008, 06:00 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,415
Mikuro is on a distinguished road
Tell me about it! It drove me nuts when I first switched. Actually, it still drives me nuts. The designers seem to have no sympathy for people without powerful graphics cards and enormous monitors. (And even with those, things like the animating size properties pane would still be annoying.)

The Classes tab is gone, and nothing has replaced it directly. Now, if you want to instantiate a custom class (or any class not in the palettes), you need to drag an NSObject from the Library palette into the nib window, and then change its class in the properties window.

Editing of a class's actions and outlets is now done exclusively in XCode, not Interface Builder.

I think the images and sounds are now in the "Media" section of the Library palette.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #3  
Old April 19th, 2008, 03:29 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,452
Viro will become famous soon enoughViro will become famous soon enough
How do I see the connections that I've made? By that I mean, I have defined a class with actions and outlets in Xcode and I've written up the implementation. How do I make the connections in Xcode? I've tried setting it by control clicking and then dragging the pointer to the appropriate components, but nothing seems to happen. How do I see what the outlets and actions are connected to?

Why do they fix something that isn't broken? -.-

Last edited by Viro; April 19th, 2008 at 03:45 AM.
Reply With Quote
  #4  
Old April 19th, 2008, 09:16 AM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,415
Mikuro is on a distinguished road
It should work pretty much like before. Control-dragging from one item to another will make a new window pop up with an outlets/actions list, and you can connect from there. You can disconnect them from the Connections Inspector (Tools menu).

If the item you're using has no open connection slots, Control-dragging won't do anything, so you might need to disconnect it beforehand.

Also, you need to explicitly import your classes from XCode. I do this by dragging the .h file from XCode into the main nib window. After you do this once, changes made in XCode should automatically propagate to IB.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:16 PM.


Mac Support® Version 3.7.0 Beta 5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.