Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > [??] IB and Java

[??] IB and Java
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Areas 51 thru 55 :P
Status: Offline
Reply With Quote
Apr 7, 2001, 01:22 AM
 
OK, I think I have a grasp on how IB updates a controllers targets and actions, but it appears to ONLY work for Objective-C. I'm using Java (I know Java and Objective-C's syntax is just a little too weird for me -- too smalltalk like for my tastes, and I'm trying to reduce some learning curves via an incremental approach -- learning a framework, a toolset, and a language at the same time leads to confusion over where the problem is when something goes wrong).

Basically, I have a project I am using to learn Cocoa and PB/IB (an engineering calculator). Phase 1 was to just make it work, which meant having actions for each calc operation, and connecting buttons to those operations.

Phase 2, which was the 2nd half of today, was to dynamically determine the function, via strategy pattern and dynamic instantiation based on message sender, the calc operation. I added my methods to my controller, but the *only* way I can add them in IB is manual recreation inside IB. IOW, for Java source files it seems that you cannot read the source file or dnd the source file to update the IB model.

Now, is this correct, or am I doing something wrong?

TIA.
Well, let's just say, 'if your VCR is still blinking 12:00,you don't want Linux'
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Areas 51 thru 55 :P
Status: Offline
Reply With Quote
Apr 9, 2001, 01:18 PM
 
For those who care, the official response is "Interface Builder does not parse Java code." Furthermore, from what I can glean from the topic, there is no information for when or if it will. I opened a feature request at bugreporter.com, and I encourage other Cocoa/Java developers to do the same.
Well, let's just say, 'if your VCR is still blinking 12:00,you don't want Linux'
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2