Questions tagged [objective-j]

Objective-J is a programming language for web development and is used to create web applications in the Cappuccino front-end web framework.

Objective-J is a programming language for web development and was used to implement the Cappuccino Web Framework. Objective-J syntax and API is modelled after Objective-C and the language is built entirely on top of JavaScript. Programs written in Objective-J are interpreted in the client, so no compilation or plugins are required. Objective-J is a superset of JavaScript, meaning that any valid JavaScript code is also valid Objective-J code, in the same way that Objective-C is a superset of C. Objective-J is released under the LGPL.

78 questions
1
vote
2 answers

How to center a CPWindow in Cappuccino

I'm interested in having a CPWindow (specifically a CPPanel) be centered and auto-sized much like you might do the same for a CPView as follows: [view setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin | CPViewMinYMargin | CPViewMaxYMargin]; …
M. Ryan
  • 6,973
  • 11
  • 52
  • 76
1
vote
1 answer

Objective-C: sortDescriptorsDidChange argument?

I don't get why sortDescriptorsDidChange takes an argument oldDescriptors if it is never used in the method. - (void)tableView:(CPTableView)aTableView sortDescriptorsDidChange:(CPArray)oldDescriptors { [result sortUsingDescriptors:[aTableView…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
1
vote
1 answer

Can I have resizable by mouse views with Cappuccino?

Can I have resizable by mouse views with Cappuccino ? I mean, I need a "iTunes" layout as the layout sample code on their website. But I wold like to be able to resize the areas with the mouse from the browser in order to customize the UI. Can I…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
1
vote
1 answer

Clip a CPImage into a circle or other shape

I have a rectangular CPImage setup like so var img = [[CPImage alloc] initWithContentsOfFile:"Resources/img.jpg""]; I'd like to display that in my CPView subclass in a circle with the part of the image clipped (what lies outside the eclipse)…
Regis Frey
  • 888
  • 1
  • 11
  • 21
1
vote
1 answer

CPDatePicker - open at dateValue not today's month

Can you programatically trigger the buttons on a CPDatePicker graphical calendar? I'm setting the date object fine, but the calendar initially displays the current month, with today's day in blue, rather than the dateValue month. Clicking the little…
1
vote
4 answers

Free UI tools for Cappuccino?

I'm looking for free tools to design the UI for my web app. I'm pretty new to this field, so please point me to acceptable solutions. Basically, I need to fill a "screen" with some controls, that's it. Thanks. EDIT: Well, as soon as nobody answers,…
avp
  • 4,895
  • 4
  • 28
  • 40
1
vote
1 answer

Snap to Grid UI in Cappuccino

Does anyone know how to do snap-to-grid in Cappuccino? Basically, I have draggable objects which I can drag into a target area. The target view needs to be set up with snap-to-grid feature. I've seen it with Mockingbird, so it's definitely possible.…
Grnbeagle
  • 1,751
  • 2
  • 16
  • 26
1
vote
1 answer

What is a Cib? (objective-j related? I'm not sure)

I was looking at some Cappuccino code (trying learn a little bit of it) and saw something called a Cib. http://github.com/Calvin4/simple-cappuccino-sinatra-app/blob/master/public/AppController.j Look at line 27. Any help? Thanks
user94154
  • 16,176
  • 20
  • 77
  • 116
1
vote
2 answers

Adding multiple Cib / Xib files in Cappuccino

Currently I'm working on a product that uses the Cappuccino Framework and the Objective-J language. I created my project using this command after installing Cappuccino: capp gen -t NibApplication Myapp The Problem I'm facing is that I want to keep…
Peter Willemsen
  • 735
  • 1
  • 7
  • 13
1
vote
1 answer

Resize content of CPScrollView

I have a CPWindow. In it, i have a CPScrollView which is set to 284px of width and 434px of height. This code show how i fill out the CPScrollView: for(var i = 0; i < 50; i++) { var supplie = [CPArray arrayWithArray:[[supplies…
Fenkiou
  • 65
  • 1
  • 7
1
vote
1 answer

objective j loads slowly in browsew

I am iOS developer. I know just a couple of languages and I hate html because of the lack of possibilities there.. I've just red about objective-j. When I try to open any code in web browser (last versions of Safari, Google Chrome) it loads…
Ash Var
  • 241
  • 2
  • 3
  • 12
1
vote
1 answer

What are some large, model-rich open source applications?

I need to identify a large model-rich open source ruby, c-sharp, objective-j or java applications so that I can target them for a series of projects. Are you guys aware of any that I could use?
hammerdr
  • 33
  • 4
1
vote
2 answers

How many work hours for 280Slides?

Here's an interesting question for J-Objective coders out there. How many work hours would it take for you to code the clone of 280Slides.com with Sproutcore. Also estimates with Cappuccino are ok because they are pretty same kind of frameworks, at…
Concson6
1
vote
1 answer

Cappuccino [warn]: Could not connect the action

This has to be something stupid, because this is so basic and even then it is not working. Anyways, ➜ ~ capp --version cappuccino 0.9.6 (2012-11-17 788ee6) I built a basic NibApplication from the template using the following command. capp gen -t…
raz0r
  • 3,372
  • 1
  • 12
  • 11
1
vote
2 answers

Does Objective-J support protocols like Objective-C?

I can't seem to find any documentation on the Objective-J language itself. Does it support @protocol like Objective-C? Is there a language spec somewhere I'm missing?
jbrennan
  • 11,943
  • 14
  • 73
  • 115