Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jamesapp

macrumors 6502a
Original poster
Mar 7, 2008
544
0
i am working on an xcode project. i got a tutorial from the web it is called
the link can be found on this site under a thread called graphics. i don't know how to post a link.
Intro to Quartz II.
i opened x-code,
and then chose file > New File and selected Objective-C NSView subclass.
After i named the file drawing.m, i clicked finish.
An x-code window opened up, drawing.h. The next step in the tutorial
"after the class file is created, you drag the header file to the NIB window in Interface Builder so it knows about the class."
my question is should interface builder start on its own. I opened it myself.
Now I have an x-code window drawing.h, and interface builder open. What and where, is the header file the tutorial is talking about. And what is the NIB window? My interface builder doesen't look like the tutorials.

where the tutorial says Instances, Classes, Images, Sounds, NIb
my interface file displays Cocoa, Carbon, IB Kit and there is a section on the right of the tutorial which has a window open that says Groups & Files. i don't see this on my computer. Just wondering what i am doing wrong.

a little of topic but how do i post a link to for example the tutorial i am
using?
 

Sijmen

macrumors 6502a
Sep 7, 2005
709
1
You can just paste the link.

According your description, the tutorial is for the previous (Tiger) version of the development tools, while you are using Leopard.

edit:
To open Interface Builder with your app, double click the nib file in the Resources group within your Xcode project.

The .h file dragging isn't needed anymore in Leopard.

edit 2:
Sorry but I keep coming back :p. You'll probably be better off looking for tutorials updated for Leopard. There will be many more differences you'll stumble upon (I reddit, but don't digg).
 

jamesapp

macrumors 6502a
Original poster
Mar 7, 2008
544
0
does anyone know of a good tutorial or book for Quartz.
i have been looking for something basic, that would teach me how to have a canvas, where i can begin to write programs, like a program to draw a rectangle and then fill it in with a certain color. I need a tutorial or book that would cover Leopard, i am currently running mac os x 10.5.2.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
The .h file dragging isn't needed anymore in Leopard.
So how does it work in Leopard? Does it automatically poll for changes and update the Nib? I always found the constant .h dragging a little clunky (especially hunting for the tiny IB window using Exposé with a dozen open applications) and thought there should be a faster, easier way. I haven't upgraded to the Leopard dev tools yet, but I will be doing that soon. I can't wait to start using Xcode 3.0, especially the synthesized accessors to save me all that damned tedious typing.

@jamesapp, I think the Aaron Hillegass book has some decent basic tutorials dealing with Quartz drawing. There's also a Quartz book on the market (I think Apple publishes it, I have seen it in Borders), but as far as I remember it's not really tied to using it within a Cocoa app and may have a little steep learning curve, however it does go very in-depth to the details of Quartz.
 

Sijmen

macrumors 6502a
Sep 7, 2005
709
1
So how does it work in Leopard? Does it automatically poll for changes and update the Nib? I always found the constant .h dragging a little clunky (especially hunting for the tiny IB window using Exposé with a dozen open applications) and thought there should be a faster, easier way. I haven't upgraded to the Leopard dev tools yet, but I will be doing that soon. I can't wait to start using Xcode 3.0, especially the synthesized accessors to save me all that damned tedious typing.

It appears IB and Xcode automatically sync the class definitions, but I don't know how it works behind the scenes.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.