» Home » Objective » Page 1
How much of the “Objective-C” I'm learning is universal Objective-C, and not Apple's frameworks?
Category : Mobile Programming

This question is related to one of my others about C: What can you do in C without “std” includes? Are they part of “C,” or just libraries?


I've become curious lately as to what is really contained the the core Objective-C language, and what parts of the Objective-C I've done for iPhone/OS X development is specific to Apple platforms.


I know that things like sy


View Replies


Objective C - UIWebview - Convert javascript text range to objective c object and vice versa
Category : Javascript

I have a UIWebview in which html content is being displayed. when a user selects a piece of text, I want to save the range of that text using objective c, then recall that saved range at a later stage to reselect the text in the UIWebview.


The closest I could get is the following javascript:


var selection = window.getSelection();
var range = selection.getRangeAt

View Replies


Objective-C consultation: “Receiver type 'void' is not an Objective-C class” error
Category : Programming Languages
EDIT:

APP_ID and APP_SIGNATURE are defined as:


#define APP_ID @"12345"
#define APP_SIGNATURE @"123456"

I'm new to Objective C and I'm using it to extern some Chartboost code into Unity C#, and I'm here for a little consultation. So please bear with me. Thanks! :D


I have this extern code:


extern "C"
{
void applic

View Replies


Including C++ header files in Objective-C++ when they conflict with Objective-C macros
Category : C & C++ & C#

In Xcode, I've created a "Cocoa application" project. One of its dependencies is a framework containing C++ code. I renamed AppDelegate.m to AppDelegate.mm and included the framework.


The project fails to compile. The problem is that the C++ header files in the framework are using some symbols that conflict with Objective-C or Cocoa.


The C++ header files are defining func

View Replies


new to objective-C getting : error: expected selector for Objective-C method
Category : Programming Languages

i try to make simple http request method but when comping im getting this error:


Compiling file main.m ...
In file included from main.m:1:
./HttpManager.h:4:2: error: expected selector for Objective-C method
-<NSURL*> getUrlContent:(NSString) url;
~^
main.m:11:17: warning: instance method '-getUrlContent:' not found (return type defaults to 'id')
View Replies


Is “Modern Objective-C” really a new version, i.e. Objective-C 2.1?
Category : Programming Languages

In WWDC 2012 Apple introduced new syntax for NSNumber literals and Collection literals, in talk 405 named "Modern Objective-C". I have learned Objective-C from the book on Objective-C 2.0 by Stephen G. Kochan.


Is "Modern Objective-C" going to be Objective-C 2.1, or should the new syntax of Apple be considered as an alternative, Apple-specific syntax (shorthand) for existing construc


View Replies


How can I use Objective C outside of Apple i.e. open source Objective C?
Category : Programming Languages

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 of very fundamental libraries like the FoundationKit and all that. I want to use Objective C as a language, and I can always use C a


View Replies


local objective vs. shared global objective
Category : Web Design

Please see the following manifest. The Activity_1's primary objective has mapInfo refers to
a Shared Global Objective with objective id = gObj-OB01a, but there is not any objective with objective id = gObj-OB01a. Is this manifest correct or not?


<organization identifier = "Course_1">
<title>Course 1 </title>
<item identifier = "activi

View Replies


Parse/tokenize objective-c with objective-c (iPhone)
Category : Development Tools & Services

What are the options available of parsing and/or tokenizing Objective-C on iPhone?


Essentially I'm thinking of parsing/tokenizing enough to power syntax highlighting and autocompletion at somewhat the same level as Xcode does.


View Replies


How do I resolve link errors that appear in Objective-C++ but not Objective-C?
Category : Mobile Programming

I'm converting my App Delegate file from .m to .mm (Objective-C to Objective-C++) so that I can access a third-party library written in Objective-C++. In Objective-C, my app delegate builds and runs fine. But when I change the extension, the project builds and I get link errors, all of which are missing symbols from a static library written in C that I use. The errors are classic link errors wi


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .