0.7b CIB possible bug

3 views
Skip to first unread message

Steve J

unread,
Mar 21, 2009, 11:38:21 PM3/21/09
to Cappuccino & Objective-J
Hey everyone,

I've been playing around with the latest 0.7b release with a nib app.
I've created a pretty basic one windowed application that I want
centered within the browser.

To setup the issue for everyone, I've created the project with capp
appname -t NibApplication as the basis for the app. I've modified the
AppController.j by adding [cib center], a method to center the window
in the browser space, below the [cib
instantiateCibWithExternalNameTable...] line. What should happen is
that the window is centered in the browser space, however it is not
doing this properly.

Would anyone like to take a look at this and figure out if this is a
bug that I can report or if it's something that I'm doing wrong?

If you need clarification, please ask.

Thanks!

Steve J

unread,
Mar 21, 2009, 11:51:05 PM3/21/09
to Cappuccino & Objective-J
FYI,

Here's the zip of the project.

http://share.allometry.com/filestore/cappuccino/cibapp.zip

Ross Boucher

unread,
Mar 22, 2009, 3:48:24 AM3/22/09
to objec...@googlegroups.com
the CIB object is not the same as the window object, the cib contains
the window object. so, you cannot center the CIB, you need to center
the window.

Steve J

unread,
Mar 23, 2009, 12:34:53 PM3/23/09
to Cappuccino & Objective-J
OK, I'm going to close this thread with a solution to the problem.

With Boucher reiterating "use your cocoa skills", I was able to fix
the issue.

I defined an outlet in FileOwner called "myWindow" and pointed it to
my window object. In AppController.j, I defined IBOutlet id myWindow
and was able to use it in code.

Here's the link to gist if anyone's interested.

http://gist.github.com/83641

Thanks!

Angel Imaz

unread,
Mar 24, 2009, 11:09:51 AM3/24/09
to objec...@googlegroups.com
Great Job Guys on 0.7b.
 
I have being playing with CIB and XIB. Everything seems to be working great.
 
The only thing, I have not manage to put o NSTableView into the window.
 
I added a Window in Main*.xib then convert it to CIB when a NSTableView is in it doesn't like it.
 
Great work guys!
 
All the best,
 
Angel

Tom Robinson

unread,
Mar 24, 2009, 3:34:51 PM3/24/09
to objec...@googlegroups.com

TableView is still incomplete, and I think nib2cib support is
partially broken. It *may* work if you remove the headers though.

Reply all
Reply to author
Forward
0 new messages