Create toolbar using IB ?

24 views
Skip to first unread message

Jeremy Savoy

unread,
Feb 4, 2012, 5:46:50 PM2/4/12
to objec...@googlegroups.com
I'm new to Capp and have no previous experience with Cocoa or Xcode, and I must say that the lack of detailed examples on how to use them together is greatly hindering this product for programmers in my shoes. There are literally thousands of tutorials/examples for platforms like Flex.

However I feel that Capp has real potential and I really would like to learn Obj-J and Capp and Xcode/IB and learn to use them all together.

Right now, from a brand new NIB application and using xcodecapp I try to add a toolbar to my main window using IB, but it doesn't show up in my web application when I save the file. I've searched and can't find any documentation on this. Is there additional code that I need to add in my App controller? I would assume no since other visual elements show up just fine, so then does that mean that the toolbar in IB is not compatible with Capp? Where are these things documented (it's not in the API docs)? I've found programatic ways to instantiate a CPToolbar - is that same code needed if I add a toolbar via IB - again I can't find any documentation one way or the other and it's a bit frustrating.

The capptutorials.net site has huge potential, but there is only one single example and it's quite too simple to really teach much of anything. Someone like me would greatly benefit from a full blown MVC patterned tutorial application utilizing many visual elements, models/views/controllers interacting with a web based CRUD system (rails perhaps?) and built with Capp and Xcode/IB.

I do understand that this is a young platform and community driven, but I'm pleading with someone out there to create a series of high quality tutorials using all the toolset - all the examples on cappuccino.org are pure programatic tutorials, and as stated the one Xcode4/IB tutorial is far too simple.

Alexander Ljungberg

unread,
Feb 10, 2012, 3:03:46 PM2/10/12
to objec...@googlegroups.com
Did you also check out http://www.cappuccino-project.org/? It is a work in progress but the Advanced Hello World might include some things other tutorials do not.

It is possible to set up a toolbar from within Interface Builder. I'm not sure how complete this support is. It did have a minor bug regarding default items and nib2cib. I'm not sure if that's something you ran into, but I went ahead and fixed it regardless. You'll need to build Cappuccino from source from master to use the fix.

I also created a very minimal example of a toolbar used from IB in cappuccino/Tests/Manual/NibAppRemixed which might be helpful to you.

When you have become more comfortable with Cappuccino I hope you'll help us out by submitting some tutorials.

Alexander


--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To view this discussion on the web visit https://groups.google.com/d/msg/objectivej/-/60PlQpKJiCkJ.
To post to this group, send email to objec...@googlegroups.com.
To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.

Jeremy Savoy

unread,
Feb 10, 2012, 8:14:05 PM2/10/12
to objec...@googlegroups.com
Thank you Alexander. If I ever do become more comfortable with Cappuccino, I certainly would like to post some tutorials because I have a feeling that there are many developers like me who were pulled into the allure of Capp by the tutorials on the Atlas beta and the Cappcasts of that era - but with that gone and no recent tutorials it's very hard to pick up from scratch if you've never done any Cocoa or Obj-C programming.

Slowly though, I'm beginning to understand some of Obj-J and Capp - mostly by reversion engineering the more recent recode of Github Issues (the Xcode/IB version) - although that work is largely incomplete (I understand - we all have day jobs:-) )

Jeremy Savoy

unread,
Feb 10, 2012, 8:18:02 PM2/10/12
to objec...@googlegroups.com
And no I did not know about http://www.cappuccino-project.org -- the examples there seem pretty current and I look forward to learning much from them. Thanks again, I really do think that Capp has incredible potential and is a thing of beauty !
Reply all
Reply to author
Forward
0 new messages