Hi,
I'm looking at the sample code for Facebook Connect (http://github.com/facebook/facebook-ios-sdk) and noticed that it is using a FBConnect.bundle file that contains some images.
I have never used a bundle file and am just curious as how to create / edit it.
Is it done through XCode?
Thanks,
Tee
...
I want to embark on a project for a CS class.
Can anyone provide insight on how to write a tool that will map out a network and state device info, IP info, open ports, etc.
I will be using OS X.
...
If I create a view, and add it as a subview and also add it to an array, do I have to release it twice?
UIView* cat = [[UIView alloc] initWithFrame:someFrame];
[self.view addSubview:cat];
[self.animals addObject:cat];
[cat release];
[cat release];
It just seems weird to me to have 2 release statements, and I haven'...
I want to declare a c array as an instance variable (e.g. int arr[256]) in the interface block of a Cocoa object. I know that @property doesn't support c arrays but how to manually add the getter and setter for the c array and where should I alloc and release it?
Any input will be appreciated. I really don't want to use NSMutableArray f...
I'm writing an application for OSX using C++ and Obj-C that interacts with Photoshop.
I've been using NSAppleScript with dynamically built AppleScripts to drive Photoshop (yes, it's a little scary...) I would love to be able to drive Photoshop a different way, so if anyone knows a better way, I'm open to it! Unfortunately, I can't use S...
I would like to be able to detect touch/click events on the tag in the UIWebView. But it doesn't look like it responds to that event. Any ideas?
videoElement.addEventListener('touchstart', myFunc, false);
Could also be the 'click' event.
...
Hello,
I'm having a weird issue, I know it's a bit futile if I don't paste the code here, but I think it would be overkill.
What would cause a UIButton to stop working, ie :
its IBAction doesn't respond anymore
the highlighted state doesn't respond anymore
This button belongs to a Scrollview that I'm moving up after this particular...
Instruments is pointing out that this is a memory leak, however I'm unsure how to release it properly, or when it should be released.
Is there a better convention for assigning properties with new objects that are only needed inside a loop? The specific line is the "expense.addedDate = [NSDate new];".
- (void) addObjects:(NSString *)it...
How do I access the EXIF info in a picture from the camera taken using the new 4.0/4.1 APIs?
I use captureStillImageAsynchronouslyFromConnection to take the picture and:
[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer];
to get the jpg data but how do I extract the EXIF?
The doco makes references to...
Hi,
I inherited some source code and am now trying to adhoc compile it.
However, I'm seeing this error message
CodeSign error: The entitlements file '/Users/teepusink/Documents/i_think_the_original_guys_path/Entitlements.plist' is missing
Where can I change that path? I do see that there exist an Entitlements.plist file and I've chang...
SO I already know about memory management in objective C, and I never had to know about it while programming in .net (C#). But i still have some questions about how everything is done.
-Why does the code leak in objective c if we allocate an object and not release it?
-Why doesn't this leak in C#?
-What are some advantages and disadva...
How can i add a new method to NSString class.
I need to create a method that get's called on a string and returns an NSDictionary.
I know that i can simply create a function that gets a string and return an nsdictionary, but i want to know how to add it to an existing class.
NSString *myStr = @"some json string";
NSDictionary *dictionar...
Hi all,
I am looking for coding standard checker something like php_codesniffer (http://pear.php.net/manual/en/package.php.php-codesniffer.intro.php) for objective c.
Thanks,
Jose Antony
...
For the app I'm currently working on, one of my main ViewControllers contains two UITableViews whose contents vary based on what's stored in my model (Core Data backed by SQL). Both tableviews set their delegate and datasource properties to the shared VC they're both subviews of, and I provide the necessary methods in the VC to respond ...
I have just jumped into Objective-C and I got stuck pretty early on. I will post code with my question but to keep it readable i'll get rid of some of the crap, let me know if you want more code posted!
I have created a new object called 'Phrase' (subclassed from NSObject), and am reading items from JSON into these 'Phrase' objects and...
Ok this is an easy one for most of you and a pretty basic question, but I quite don't get the full concept yet .
I've got a window based application, it contains 2 views, so far so good, everything is working but now I`m trying to do a modalTransition, which requires a ViewController ( which I don't have ) . What is the best way to atta...
hi all,
My Mac os version is 10.6.4 and xcode version is 3.2.3.I'm using WhereAmI program.I have used CLLocationManager to get current location it works fine in iphone 3 ios but does not works in iphone 4 ios.Can anybody tell me what is the problem.I'm not understanding what is the problem.I thing this problem is related to GPS Sett...
How can I create my own methods which take a block as an argument and which I can call later?
I have tried following things.
#import <UIKit/UIKit.h>
typedef void (^viewCreator)(void);
@interface blocks2ViewController : UIViewController
{
}
-(void)createButtonUsingBlocks:(viewCreator *)block;
@end
- (void)viewDidLoad {
[super view...
Hi all,
I have a class wich is initialized like this.
// myclass.h
@property(nonatomic,retain) NSMutableArray *daysOfWeek; // this is in .h file
// myclass.m
@synthesize daysOfWeek;
-(id)init {
if(self=[super init]) {
// initialize days of week
self.daysOfWeek = [NSMutableArray arra...
In my code I declared NSString object in .h and synthesized in .m , I m assigning it with string object in array . but its not working .
when I print it on Log it display sometime CAlayer Class , some time shows NSCFString class object .some time shows UIDevicewhitedevicetype class how to solve this ? help...
...