|
I would like to create a portable library for iPhone, that also could be used for other platforms.
My question is the fallowing:
Does anyone knows what is the best to be used on the iPhone: Objective-C or Objective-C++? Does it works with C++ the same...
Started by mxg on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Objective-C is the standard dialect, but if you need to work with C++ of different libraries) is that ....
Objective-C++ is just Objective-C with slightly limited support for including C++ code.
They're not really different languages.
|
|
Question says it all. (I reserved 2 library books which came on the same day. I saw them on the shelf and realized that they were the same except one was ObjC and one was ObjC 2.0. (not full titles...)
Bonus, what is Objective C++? objectie
Started by Moshe on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Objective-C 2.0 : a revision of the ....
Objective-C++ : a GCC front-end which adds to C++ the extensions Objective-C adds to C.
A little wiki told me:
Objective-C: a C-style programming language with Smalltalk-style messaging.
|
|
Is there an easy way to convert an Objective-C 2.0 file to Objective-C 1? I am writing a Cocoa app, and I decided to support Tiger, which doesn't support Obj. C 2.0. I know I should have thought of it before I wrote a whole bunch of code, but is there...
Started by Adrian Sarli on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's a Objective-C 1.0 foreach macro that can make converting the for(id.
Your own accessors where needed) If you are iterating through collections via for(object in collection) you'll need to redo.
|
Ask your Facebook Friends
|
The instructions for tags says "Combine multiple words into single-words". Objective-C already is hyphenated, shouldn't the tag be objective-c?
UPDATE: The only reason to keep the unhyphenated form is that it is in wide use already. If you like the hyphenated...
Started by Ned Batchelder on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Planning to see if the admins could make a mass-change to objective-c , but getting everyone to convert.
|
|
I would like to start using Objective C for something projects, however I don't want to use any frameworks and libraries that are tied to Apple. What can I use to write portable code across Mac OS X, Linux, and maybe even Windows?
EDIT: I was thinking...
Started by Alex on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
On....
GNUStep is the most well known if you want to use Objective-C.
Of course, Objective-C is not particularly useful without libraries to go with it.
Objective-C is supported by the gcc tool chain on all of its supported platforms.
|
|
Say that I have Class A and Class B. Class B is a subclass of Class A. Class A contains some properties and then Class B extends the Class A superclass by adding some additional properties, specific to that subclass. I have created a Class A object and...
Started by Mark on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're happy to make a copy of the object (i.e., you're....
Objective-C doesn't have the ability to relocate objects.
Like this with the Objective-C runtime functions :
newB = object_copy(a, class_getInstanceSize(B).
|
|
How does Objective C on the iPhone compare to Objective C on the Mac and what version of objective C is the various iPhone versions?
Started by Casebash on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There are some Cocoa, and it has been Objective-C 2.0 from the....
I think that is about it when it comes to Objective C differences.
You still must manage your memory.
You do not get Garbage Collection in Objective-C 2.0 on the iPhone.
|
|
Hey! i am new in objective c. i am trying to learn objective c. i would like to know how to declare two dimensional array of string type in objective c.
Started by ashish on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want to use an NSArray, you'll have to manually create the structure like this:
NSMutableArray *strings = [NSMutableArray array]; for(int i = 0; i < DESIRED_MAJOR_SIZE; i++) { [strings addObject: [NSMutableArray arrayWithObject... .
You have a couple options.
|
|
When a user uploads something via my app, I create an ASIFormDataRequest object to make the POST.
When the user is offline, I would like to write a ASIFormDataRequest object to file and send it later.
Is there a built in way to serialize an object like...
Started by Andrew Johnson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://en.wikipedia.org/wiki/Serialization#Objective-C
There....
In the Objective-C programming language, serialization (more commonly known as archiving) is achieved by overriding the write: and read: methods in the Object root class.
|
|
While reading the documentation, I wonder if objc_msgSend() is actually the "core technology" in delivering the functionality for making Objective-C "object oriented". Maybe someone can explain in more detail which other pieces come into place to enable...
Started by Another Registered User on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Now, there are many different ....
That is pretty much all there is to "object oriented programming".
Objective-C is object oriented solely because it encapsulates data and functionality into a single container; a class.
Not entirely.
|