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.

81 questions
0
votes
2 answers

Has there been any work done towards running Objective-J code in a node.js process?

More specifically, I'm looking to serialize plist's from string data within a node.js process and send them in a request. For example: var data = [CPPropertyListSerialization dataFromPropertyList:dict format:CPPropertyListXMLFormat_v1_0…
pnitsch
  • 1
  • 1
0
votes
1 answer

Understanding methods syntax in Objective-C and Objective-J

I've a simple question about objective-c / objective-j syntax. This is a method dataForItemsAtIndexes and it gets as parameters a CPIndextSet and CPString. It should return a CPData object. However I don't understand what's…
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
0
votes
2 answers

I've some hard time to understand method signatures in Objective-J / Objective-C

I've some hard time to understand method signatures in Objective-J (but it should be the same on Objective-C). The syntax should be: -(return_type)instanceMethod1:(param1_type)param1_varName :(param2_type)param2_varName; The type is specified…
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
0
votes
1 answer

How can I download an image from a URL using CPImage?

I have a CPImage: -(void)setAvatarImageForMessage:(STMessage)aSTMsg{ var image = [[CPImage alloc] initWithContentsOfFile:aSTMsg.avatar_url]; [image setDelegate:self]; if([image loadStatus] == CPImageLoadStatusCompleted) …
Sheehan Alam
  • 57,155
  • 123
  • 348
  • 546
0
votes
3 answers

Speed comparison of Cappuccinos obj_msgSend() vs. normal JavaScript-call avaiable?

As you know Cappuccino implements the dispatch mechanism of Objective-C / Smalltalk to send messages to objects (~call their methods) in a special method called objj_msgSend. [someObject someMethodToInvocate: aParameter]; Obviously this introduces…
Richard Durr
  • 2,663
  • 3
  • 18
  • 23
0
votes
1 answer

Changing title in CPButton within an if/else statement (Objective-J)

I have a very simple Objective-J webapp that is a label and a button. The label text changes when the button is pressed. I want to make the title of the button change as well. If I put the change statement in the swap function below (function that…
Andrew Lauer Barinov
  • 5,474
  • 9
  • 56
  • 80
0
votes
1 answer

How do I make this code KVO compliant?

I'm trying to get a grip on bindings and have set up a CPWindow with a CPTextView in xcode and bound the window and the textview to their respective outlets. I'm getting a bit stuck however trying to make the textview display the _xmlContent. I've…
Kris
  • 36,072
  • 8
  • 69
  • 94
0
votes
1 answer

how to iterate literal dictionary in cappucino objective-j

Please an help to iterate literal dictionary on cappuccino environment.Thanks var userDict = @{@"name": @"Jack",@"secondName": @"Buck",@"name": @"Jacob",@"secondName": @"Smith"}; for (var righe in userDict){ console.log(righe.name +…
sundsx
  • 558
  • 8
  • 25
0
votes
1 answer

Using Parse Javascript SDK in Objective J Cappuccino Project

Since valid Javascript code can be executed in Objective J, how would I go about adding the Parse SDK? Following this tutorial: Parse JS SDK In my project, I can't add the HTML script tag:
Justin Moore
  • 844
  • 2
  • 9
  • 22
0
votes
1 answer

Heroku fails to load resources for Cappuccino app (Nodejs)

Node.js web server: var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var…
Justin Moore
  • 844
  • 2
  • 9
  • 22
0
votes
1 answer

Objective-J Cappuccino want a list of buttons on main menu, when I click the panel refreshes with UI of button selected

Dear all, I am new to objective-j/c and cappuccino not really sure how this all fits together. The code below is taken from http://github.com/jfahrenkrug/CappuccinoLocations1 What I need to do is: I need a landing main menu which is a CPView called…
Setori
  • 9,286
  • 11
  • 38
  • 45
0
votes
1 answer

Native JavaScript code in Objective-J

I just started developing with Cappuccino Framework and I wonder if it is possible to use native javascript code in Objective-J? I just tried to implement a simply alert(); in Objective-J code but it doesn't work at the browser... var label =…
Yss
  • 101
  • 1
  • 1
  • 11
0
votes
1 answer

Cappuccino Redirect

What would the best practice be to redirect someone to another page in Objective-J (Cappuccino)?
huntaub
  • 746
  • 1
  • 8
  • 17
0
votes
1 answer

Problem creating gui from xml -> Strange CPButton behaviour

Hallo, I'm new to objective-j and cappuccino and just have tried to create a small application, that creates the gui dynamically from a xml file. Unfortunately it works only partially. It seems that the button regions are disorder. This means, that…
Superpro
  • 1
  • 1
0
votes
0 answers

CPToolbar renders in the CPBorderlessBridgeWindowMask window only

I tried to add the custom toolbar to my application. To locate it at the bottom of the window I created one more window and added the toolbar to it: var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero()…
Nickolay Kondratenko
  • 1,644
  • 1
  • 19
  • 24