So, NSUserDefaults is quite easy to use. But apparently, it is not too secure - there is no encryption. And of course the client wants the app prefs to be secure because it contains sensitive data.
But the Keychain is secure, though hard to code (apparently). So is there a way to easily convert NSUserDefaults code to Keychain code? In o...
I have a nib (winA.xib) that contains a window. My app delegate contains an NSWindowController subclass called WinAController.
WinAController has a property (NSMenu *mainMenu) that I want to point to the MainMenu. I have set it after I instantiate WinAController with this code:
WinAController = [[WinAController alloc] initWithWindo...
Hello:
Why is the following code causing a memory leak in an iPhone App?
All of the initted objects below leak, including the arrays, the strings and the numbers. So, I'm thinking it has something to do with the the synthesized array property not releasing the object when I set the property again on the second and subsequent time this ...
I created a custom UITableViewCell class with a UIButton, a UIImage, and two UILabels. The button and the image are overlayed on top of each other, and only one is displayed at a time. The expected behavior is you touch on the button, the button disappears, and it displays the image. The UITableViewCells are set to be reused. Here's ...
Basically i record / import video , it saves to the docs folder and im trying to figure out how to get the length (time) so i can display it for each individual video..
I have a column in the database for it and the neccessary code to display it, just not sure how to get it..
Any help is greatly appreciated
...
Hi,
i have a UIImageView of 1024x768 (the room of my game) and other various UIIMageView on it (the object of my game).
The iPhone screen is smaller than the room (UIImageView 1024x768) .. i want to understand if the iPhone's system automatically intercepts the graphic elements outside the visible area of Room (the player's view) and unl...
Everything builds and runs in the simulator fine ... but when I attempt to run on device I get:
"arm-apple-darwin10-gcc-4.2.1:
..../three20/Build/Products/Debug-iphoneos/libextThree20JSON+YAJL.a:
No such file or directory"
I check that directory and indeed the file doesn't exist. It does exist in the "Debug-iphoneosimulator" t...
I've been stuck on this for days and each time I come back to it I keep making my code more and more confusing to myself, lol. Here's what I'm trying to do. I have table list of charges, I tap on one and brings up a model view with charge details. Now when the model is presented a object is created to fetch a XML list of users and parses...
My UI is not updating when I expect it to.
The application displays "projects" using a view similar to iTunes -- a source list on the left lets you filter a list (NSTableView) on the right. My filters update properly when they are examining any simple field (like name, a string), but not for arrays (like tags).
I'm removing a tag f...
How is a hash of integer array can be represented in objective-c? Here is the ruby hash as an example:
hi_scores = { "John" => [1, 1000],
"Mary" => [2, 8000],
"Bob" => [5, 2000] }
such that can be accessed by:
puts hi_scores["Mary"][1]
=> 8000
hopefully easy to serialize too. Thanks!
...
Hi,
and again my array of arrays ... I try to improve my app performance by buffering arrays on file for later reuse.
I have an NSMutableArray that contains about 30 NSMutableArrays with NSNumber, NSDate and NSString Objects.
I try to write the file using this call:
bool result = [myArray writeToFile:[fileMethods
...
I have this date and time format:
2010-05-19 07:53:30
and would like to change it to:
Wednesday @ 7:53PM 5/19/2010
I'm doing this, which gets the current format:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
but when I change the format, I end up with a null. For exa...
Hi , I am creating a news aggregator application that fetches a xml feed every 4 minutes. After the xml is loaded, I clear everything by deleting all the objects in the database, then save the new objects back into the database. I then call [self.tableViewSection reloadData]; to reload the tableView. Thats when I get a problem. As soon a...
In the apple document, I can see that there's a way to convert from UTF8 string to ASCII string like this
NSData *asciiData = [theString dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
NSString *asciiString = [[NSString alloc] initWithData:asciiData encoding:NSASCIIStringEncoding];
But my app requires a TIS-620 stri...
Hi
Ok, after I ran into a dead end modifieing an existing Apple example for CoreData, I started completely new creating my own project and that worked fine,..... until I tried to access a related entity.
So here is what I did.
I created 2 entities, where one is just the detail information of the other one, so there is a one-2-one rela...
Hi All,
I am trying to play a m4v movie clip in my application just after splash screen but it shows a odd behavior,sometimes it works fine but sometimes it starts and stuck in beginning only the audio of clip plays continuously.
If this introductory movie clip play successfully than all other movie clips works fine but
if it stuck the...
Hello,
I need to access the scroller object of an UIWebView, so I do something like this :
id obj = [[webView subviews] objectAtIndex:0];
The problem is that the object returns is not the same in SDK 3 and SDK 4.
In 4, it returns an UIScrollView object.
In 3, it returns me an UIScroller object, the problem is that this class isn't do...
hi,I would like to ask if there are , or there is one of this Api:sip rtp srtp zrtp
for iphone , if there is a way for to use them in the iphone simulator , and what is the
default gataway in iphone .
...
Hi
I have a class DataObject as
Header :::
#import <Foundation/Foundation.h>
@interface DataObject : NSObject {
NSString *erorrMessage;
BOOL hasError;
NSDictionary *dataValues;
}
@property(nonatomic, retain)NSString *erorrMessage;
@property(nonatomic)BOOL hasError;
@property(nonatomic, retain)NSDictionary *dataValues...
i have an NSObject with 2 property's
@interface Entity : NSObject {
NSNumber *nid;
NSString *title;
}
i have 2 array's with Entity's objects in it and I want to compare those two on the nid with a predicate
array1: ({nid=1,title="test"},{nid=2,title="test2"})
array2: ({nid=2,title="test2"},{nid=3,title="test3"})
the 2...