NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
Using Project Builder

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
eagle



Joined: 29 Mar 2006
Posts: 393

PostPosted: Sun Jun 01, 2014 7:22 pm    Post subject: Using Project Builder Reply with quote

Hi, all.

I have recently started reading Aaron Hillegass's book on Cocoa programming, and I had the idea to try the first example program in NeXTSTEP/OPENSTEP.

The guide works except for one thing that I haven't figured out yet: how do I attach my own class to the objects in Interface Builder?

In the sample from Aaron's book, you create a window with 2 buttons and 1 text field, then you create a class with 2 methods and 1 value.

I think the code will run fine (all it does is generate random numbers), but I can't get the code connected to the GUI in Interface Builder.

Anybody have or know of a development guide? Or, does anyone remember how to do this?

Thanks so much.
_________________
My NeXTs:
NeXT Computer prototype (68030-25 x2, 68040-25)
Two NeXTstations (68040-25)
All mono
Back to top
View user's profile Send private message
cuby



Joined: 12 Jan 2006
Posts: 164
Location: Coburg, Germany

PostPosted: Sun Jun 01, 2014 8:13 pm    Post subject: Reply with quote

I haven't used Project Builder for quite some time, but perhaps the book "NeXTSTEP Programming, Step One: Object-Oriented Applications" by Simson Garfinkel and Michael Mahoney helps. Simson Garfinkel offers a PDF of the book for download:

http://simson.net/ref/1993/NeXTSTEP3.0.pdf

-- Michael
Back to top
View user's profile Send private message Visit poster's website
eagle



Joined: 29 Mar 2006
Posts: 393

PostPosted: Mon Jun 02, 2014 3:20 am    Post subject: Reply with quote

Yes, it looks like that will help. I'll try that today. Thanks!
_________________
My NeXTs:
NeXT Computer prototype (68030-25 x2, 68040-25)
Two NeXTstations (68040-25)
All mono
Back to top
View user's profile Send private message
eagle



Joined: 29 Mar 2006
Posts: 393

PostPosted: Tue Jun 03, 2014 7:24 am    Post subject: Reply with quote

Thanks! I now have a NeXTSTEP 3.3 application and a Cocoa application that are practically code-identical, and do the same thing. Very neat.

It's a very, very simple application, sure, but it's neat to see the same thing working on both NS3.3 and Mavericks.

And, the NSString.h header is not needed on the NeXT side.


_________________
My NeXTs:
NeXT Computer prototype (68030-25 x2, 68040-25)
Two NeXTstations (68040-25)
All mono
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group