Objective-c is a highly dynamic message-based object-oriented language, superset of C, that is a primarily used for programming Apple's Mac OS X and iOS platforms.
-3
votes
0answers
55 views
Three way transaction in Paypal integration [closed]
I am developing an app in which I want it to be integrated with Paypal.
In which I want to transfer from one account to two different accounts.
Ex. deduct 105$ from first account.
add 100$ to ...
-2
votes
0answers
52 views
Can I charge user some commision for using paypal service as a broker commission? [closed]
Can I charge user some commission for using paypal service from my app ?
I am developing an app where one user will transfer money to other user account. And I want to take commission for money ...
-4
votes
1answer
38 views
How to implement a Shared Calendar in iOS app [closed]
I'm currently building an app for a small company, and part of the specification is that there is a small calendar which, between certain times, the user can reserve fixed time slots. As the slots get ...
-4
votes
1answer
39 views
Objective C Calculator Error [closed]
I am trying to develop a Binary calculator for a beginner's project, but this one bug has puzzled me for days. The error I am receiving is
Implicit conversion of 'NSIngeger' (aka 'int') to ...
2
votes
4answers
339 views
Is Objective C a reasonable way to learn C?
I want to learn C but I tend to learn best when I have a project to work on. I've never done iPhone development, so I'm hoping to kill two birds with one stone. Will learning objective c also teach me ...
0
votes
0answers
56 views
Correct way to have a one time login iPhone? [migrated]
I'm trying to create an app that will require a login upon first time load. Once the user logged in successfully the credentials will be stored in a keychain so the user doesn't have to keep logging ...
-1
votes
0answers
105 views
Learn Python or C/C++ or Objective-C first? [closed]
I'm going to university in the fall and I'll be studying computer science. I really love the idea of programming and making software in OSs. I've done some beginners programming in python/c/objective ...
-1
votes
0answers
18 views
merge many bytes arrays into one byte array in objective c [closed]
Used NSMutableData to merge bytes arrays here is how i am doing it.
NSMutableData *payload;
[payload appendBytes:CFBridgingRetain((cm.msgBytes)) length:[cm.msgBytes length]];
NSString *cmdata = ...
-4
votes
2answers
90 views
I Know Objective C, but not how to make Apps [closed]
I have gone through a course on programming Objective C, but I want to begin App Development for iOS. The only issue is that I do not know where to begin learning the necessary skills required to ...
2
votes
2answers
129 views
What is expected of an intern iOS SDK programmer from self-taught arena? [duplicate]
edit: I'm asking for samples an intern would want to show, please don't answer soft-skills that get this marked as a dupe, it is NOT.
To be more specific, what sample apps and background, is minimum ...
1
vote
1answer
167 views
Why is it impossible for Google to port V8 along with Chrome's codebase in C/Obj-C on iOS?
Google has given a reason that All apps on iOS have to run in the sandbox environment except for special apps by apple that get to tap into some private APIs.
So Chrome on iOS uses whatever the ...
2
votes
1answer
49 views
Objective C - nested messages … confusion about
Wonder if anyone could shed some light on this messaging construct:
The documentation says that messages appear btwn brackets [] and
that the msg target/object is on the left, whilst the msg itself ...
4
votes
2answers
63 views
Is it a good idea to put declaration of protocols for delegates in a private category interface?
I have a View Controller or a View that implements delegate and dataSource methods of UITableView.
These methods are not going to be used outside this class.
So is it a good idea to make the ...
0
votes
0answers
5 views
Need help with this error. Please post solution/tips to make this not happen again. [migrated]
Need help with the [currentValue, targetValue, difference]; line. It says that initializer element is not a compile-time element. Please post solution.
NSString *message = [NSString stringWithFormat:
...
1
vote
1answer
73 views
How to implement a Theme for View Controllers in an iOS app?
I have an application, where font size, font type, color, background color, image and a lot of things change based on theme.
I realised in the beginning itself that using enums to denote themes and ...
-1
votes
1answer
50 views
Using third party/ open source controls [closed]
I usually feel reluctant to use any third party or open source controls while coding in Objective-C iPhone due to following reasons.
Open source controls are developed in incremental manner. So once ...
1
vote
1answer
106 views
What is the most appropriate testing method in this scenario?
I'm writing some Objective-C apps (for OS X/iOS) and I'm currently implementing a service to be shared across them. The service is intended to be fairly self-contained.
For the current functionality ...
3
votes
3answers
473 views
Why did Apple choose to design its programming language with future and past tense method names?
There are a lot of methods like this in iOS/Objective C:
- viewDidLoad
- viewWillAppear:
- applicationDidFinishLaunching
I've just been having a discussion with some colleagues about this design ...
1
vote
1answer
109 views
How to embed an article in the source code?
Sometimes, I notice typos in articles (blog posts) or books in source code that appears in the body of the article. It may be an indication that the code has been manually copied and pasted (e.g. ...
2
votes
1answer
154 views
Objective-C class cluster pattern
I have many sublcasses of one class. I choose concrete class based on type (simple enum). I like idea of class cluster. Should i use it or just create factory class (but each class in objective-c is ...
-6
votes
1answer
103 views
What is the best and most efficient structure of a typical iOS Application [closed]
I have dived into developing for iPhone/iPad lately. And while developing on XCode, I feel like My classes interfaces..etc is messy and I am running into that because I may have not given enough time ...
0
votes
1answer
48 views
Putting a TableView on a ViewController [closed]
I am having trouble figuring out the best way to display my model for my iOS 6 app.
My model has a few properties and a to-many relationship with another object. I want to display the properties ...
1
vote
1answer
147 views
Implement a file system for ios devices
I've read that ios apps can communicate via unique urls. An online tutorial on tutsplus
says
Communication between apps provides your application with an opportunity to take advantage of other ...
-4
votes
1answer
122 views
upload pdf via iOS app [closed]
I have a web-service that transforms an uploaded pdf into a flipping-book. I wan't to create an iOS app that allows the user to upload their pdf and recieve the flipping-book. What possibilities are ...
3
votes
3answers
191 views
What is a static method compared to instance/class/private/public methods?
I'm learning programming in Objective-C and I can't understand what a static method is. I know what class/instance/private/public methods are. Can someone explain what it is using an example and ...
0
votes
1answer
40 views
Program Structure for Table Cells Representing Objects
So I have a program with "cue" objects and each have their own table cell. The thing is that the table cells have loading bars on them that represent the progress of the cues. This presents the ...
0
votes
0answers
159 views
Web development in objective-C [closed]
I would like to do web development with objective-C and cocoa.
Is it practical?
Which frameworks and ressources should I know about?
0
votes
1answer
251 views
Is object-oriented conceptual thinking something you build with experience? [closed]
I know that the answer is pretty clear because you get better on everything with time and experience. But I'll tell you where I'm coming from:
A couple of months ago I decided to learn iOS ...
2
votes
4answers
223 views
Should I read a chapter about Memory management if now a days we mostly use ARC?
I'm reading a book on Objective C, and I was wondering about 2 things:
Should I take the time currently to read a whole chapter on memory management?
If you are doing a really good job on manual ...
0
votes
2answers
183 views
Why is “working with files” is an important subject when learning Objective C?
I'm reading a book on Objective C, and I was wondering how important the subject Working with files for learning to develop iOS in particular?
On you tube the tutorials are very short, maybe 10 min ...
4
votes
3answers
406 views
C++ vs Objective-C design principles of setters and getters
In C++ I was told that my classes shouldn't have getters and setters: Doing it wrong... blog post.
On the other hand, in Objective-C, the direct use of ivar is discouraged, because the getters allow ...
2
votes
1answer
164 views
Can Objective C categories serve the same purpose as Traits do in Scala?
The statement of the question seems little abstract to me, so please read the details below :)
Since the time when C++ was the first choice Object Oriented Language for almost anything,We had a big ...
9
votes
2answers
333 views
success:/failure: blocks vs completion: block
I see two common patterns for blocks in Objective-C. One is a pair of success:/failure: blocks, the other is a single completion: block.
For example, lets say I have a task that will return an object ...
4
votes
2answers
426 views
Core data syncing (deletion) using a custom REST web service
I need to sync my local core data stack against a server running a persistent data storage underneath the covers. (I've gone through other posts here and on SO on similar topics)
My requirements:
...
0
votes
1answer
188 views
Preventing override of methods in Objective-C [closed]
Objective-C lacks private methods or java-esque final methods. This means that it is possible for a subclass to (accidentally) override some of the internals of a superclass.
How does one prevent ...
1
vote
1answer
164 views
How to avoid huge functions with made up of enums and if-else or switch case when dealing with server response in iOS?
in my application,
I have a request type associated with variety of API calls I make to the REST server.
when the response from server comes in the same delegate method for web engine's response,
I ...
0
votes
1answer
253 views
Pictures from iPhone to clients FTP server - Directly (iPhone->FTP) or Cloud (iPhone->Amazon->FTP)
My clients wants to take pictures with their iPhone's and place them collectible on their server, suggested by FTP.
I can see there is two solutions:
Directly upload from the iPhone to the FTP ...
4
votes
2answers
456 views
What patterns book for iOS development contains this specific information? [closed]
I've read several books on iOS development and Objective-C, however what a lot of them teach is how to work with interfaces and all contain the model inside the view controller, i.e. a ...
0
votes
1answer
228 views
3 tier architecture in objective-c [closed]
I just finished reading the objective-c developer handbook from apple. So I pretty much know everything that there is to know about objective-c (hee hee hee). I was wondering how do I go about ...
1
vote
3answers
356 views
When should one use “out” parameters?
In Objective-C, there are several methods like initWithContentsOfFile:encoding:error: where one passes in a reference to an NSError object for the error: parameter. In this example, the value of the ...
3
votes
4answers
210 views
Strategy for avoiding duplicate object ids for data shared across devices using iCloud
I have a data intensive iOS app that is not using CoreData nor does it support iCloud synching (yet). All of my objects are created with unique keys. I use a simple long long initialized with the ...
3
votes
5answers
2k views
Why was Objective-C popularity so sudden on TIOBE index?
I'd like to ask a question that is pretty similar to the one being asked here, but for Objective-C.
According to TIOBE rankings, the rise of popularity of Objective-C is unprecedented. This is ...
4
votes
1answer
667 views
Can someone explain this joke about Objective-C? [closed]
I found this website containing a bunch of these "Shoot yourself in the foot jokes" but I did not get this one:
Objective C: You write a protocol for shooting yourself in the foot so that all ...
6
votes
1answer
246 views
What is the convention for the star location in reference variables?
I have been learning Objective-C, noting that different books and examples use differing conventions for the location of the star (*) when naming reference variables:
MyType* x;
MyType *y;
MyType*z; ...
2
votes
2answers
193 views
Objective C style nil in java?
Objective C has a concept of a nil object which would accept any method call with any parameters without complaining and silently return another nil.
I have used something similar in Java using ...
2
votes
2answers
184 views
see what ARC does?
If I understand correctly, all ARC does is automatically add memory-management statements such as retain and autorelease in the proper places in a program. Is there any way to see all the ...
0
votes
2answers
218 views
Is Objective-C dealloc badly named? [closed]
In Objective-C it seems that the opposite of alloc is release (which undoes the memory allocation that alloc did), and the opposite of init is dealloc (which undoes the instance initialization done by ...
1
vote
2answers
137 views
Adhering to a protocol and being a subclass at the same time?
In objective C, I have a situation where I would like to have an abstract protocol (interface) with 5 methods and 4 properties, but at the same time, I'd like to have a common implementation of 3 of ...
3
votes
4answers
300 views
Is conditional return type ever a good idea?
So I have a method that's something like this:
-(BOOL)isSingleValueRecord
And another method like this:
-(Type)typeOfSingleValueRecord
And it occurred to me that I could combine them into ...
3
votes
2answers
293 views
Something similar to Objective-C categories in other languages?
I understand Objective-C categories and how they become useful, but I always have a hard time explaining the concept to other programmers that are not familiar with Objective C.
Maybe I'm just bad ...