Ok, so I have the correct username / pass for a remote host, and I have a NSURL Object referring to the file on the server.
How can I possibly write data to that server via Objective-C? I cannot find anyone with this problem, so you help would be greatly appreciated!
...
Is it possible to show a count indicator on top of a tab bar item? How?
The application has several tabs, and in some of them there might be updated information. I'm looking for a way to make the user notice when there is something new in one of the tabs...
I'm thinking of a round count indicator as is shown on top of the application i...
I wrote a very simple to-do-list program(it only has 3 methods). Then I did a Build&Analyze to make sure everything checked out. When I used the Leaks performance tool it told me I had a leak. I couldn't figure out where the leak was coming from so i commented out ALL of my code and still had a leak. So for a test I made a NEW cocoa proj...
Hi All
I have been working using openFrameworks, on a problem that is posted on the forum:
www.openframeworks.cc/forum/viewtopic.php?f=8&t=4765
Essentially, I have used an an set of files, ofxHttpUtils, which uses poco to post to web forms.
The example code I have used is at:
github.com/arturoc/ofxHttpUtils/blob/gh-pages/example/src/te...
Hi, I am trying to compile the following example from http://www.otierney.net/objective-c.html. It consists of three files:
Fraction.h
#import
@interface Fraction: NSObject {
int numerator;
int denominator;
}
-(void) print;
-(void) setNumerator;
-(void) setDenominator;
-(int) numerator;
-(int) denominator;
@end
F...
In general, is it better to store raw data with pre-calculated values in the database and concentrate on keeping the database up-to-date if I remove or delete a row while using the pre-calculated values for display to the user
OR
is it better to store the raw data and calculate the correct display values on-the-fly?
An example (whic...
I have a data model which has two entities in a relationship of one to many.
Each entity has a class that is subclassed from NSManagedObject.
I get the relation set for the one entity and walk it casting each set member to the specific subclass as I enumerate the collection.
When I do
NSLog(@"My Entity: %@", myEntityInstance);
It ...
I have a class like this:
@interface MyCollection : NSObject {
NSMutableDictionary *data;
}
and in the implementation of it, I have a method to init it like this:
- (id) init {
if(self = [super init])
{
self.data = [[NSMutableDictionary alloc] init];
}
return self;
}
Now when I create a object of this ...
I'm writing a Wavefront object loader for work because I don't feel comfortable using code I don't understand in professional projects. After the obvious first step, sorting out which parts are which, I'm attempting to load and log vertices. First and foremost, I wrote a C struct to hold the values.
struct Vertice {
float x;
flo...
Is it possible to access the super class method of an objects super class (or grandfather)?
For instance:
GrandFatherObject : NSObject
SuperObject : GrandFatherObject
SelfObject : SuperObject
From SelfObject:
- (void)overriddenMethod
{
// For Self
someCode();
// For Parent
[super overriddenMethod];
// For GrandParent
?...
hi all,
another quick question. how to compare an string with the values of an array
for example
string a =@"abc";
compare = [[NSMutableArray arrayWithObjects:@"a",@"b",@"abc",@"d",nil]];
if string matches any of the element in array, i should show some alert or something.
regards
...
Hi! This is my first time posting here.
I'm a comp sci student attempting to do some things that might be a little over my head:
I'm attempting to add some logging to the object_cxxDestruct function within the objective c library (objc4-437.1 specifically). I've tried subclassing dealloc, but things like NSAutoReleasePools seem to fall t...
I have an entity called "Client," and each Client can have multiple "Properties." CoreData creates methods on the Client class for me for adding a new Property to the set, but I don't understand the purpose of this. Is there any difference at all between:
Property *newProperty = [NSEntityDescription insertNewObjectForEntityForName:@"Pro...
I want my UIImageView to detect both Tap and Swipe gesture. I've coded the touchesBegan method for Swipe detection, I just want to knw how can i make my ImageView detect both the gestures.
how to code the touchesBegan so that it can handle both of them??
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
if ([touches c...
I'm wondering if there is a standard method for deploying applications originally written in Java, to iOS4 devices.
I assume that the application in original format cannot be deployed - is there perhaps an emulation layer that I can use, or a stable compiler that compiles Java to ObjectiveC?
...
Hi everybody!
I have a view that contains a ScrollView opening two xibs.
There is a button on a Xib contained in ScrollView.
I want that after clicking the button, open a new view outside of the ScrollView.
But I can not open a new view outside the Scrollview. = /
Any suggestions?
Thanks.
...
Is there a standard way to register either left or right swipes of the page and respond accordingly?
...
I would like to know if it is possible to read and write data from and to memory with ANSI C code instead of from a file. I have C code that is called from within an Objective C class many times and each time, it has to read in the same large binary file, do some processing on it, and then write out a large binary file (which is slightl...
Hi, i have 2 class:
main.m
second.m.
If i have in main.m
- (void)ok
{
NSString *myString = @"OK!";
return myString;
}
How to call myString or "-(void) ok" function from second.m?
Thanks.
...