objective-c

is there a way to view via code the iphone sms archive?

is there a way to view via code the iphone sms archive and sort them in an app? ...

Logic to Implement Parent Child Relationship in efficient manner.

Hi.. Friends, I have a Table where Parent Child Relation ship is stored as: ChildID Name ParentID 1 A1 Null 2 A2 1 3 B1 Null 4 A3 2 5 A4 1 I m Woking on Objective C and I need to Generate a text File in Manner: Name =A1> Name =A2> Name =A3/>...

addSubview outside resized frame

Hi guys. I've coded a "generic" ads management class for all my applications and i have an issue. This class can add an ads view to any view of my application, randomly; in order to do so, my idea is to resize the frame of my current view to reduce its height (let's say 50 pixels less) and add my ads view in the free space i created. Th...

iphone code - how to create the update sign in the tab bar ?

how can i create the update sign (the red one) in the tab bar ? ...

Bind an NSTableView to an array in the NSUserDefaults: Mutable!

My setup is an NSTableView with one column that is binded to the NSUserDefaults. Now that works perfectly, as long as nothing gets changed in my tableview. When I trie to change a value (all simple strings) i get the following error: Error setting value for key path of object Acid (from bound object <NSTableColumn: 0x1796ef10> ident...

Any Open Source examples of using PLActorKit?

I've intrigued by Plausible Labs PLActorKit: http://code.google.com/p/plactorkit/ But the documentation just has single single Echo example. Before diving into it further I'm curious if there are any open source projects using PLActorKit I can take a look at. ...

prevent UIAlertView from dismissing

As a form of validation, is there any way to prevent an alert view from dismissing when pressing an "OK" button? Scenario: I have 2 text fields in the alertview for username/password. If both are empty and the user presses "OK", I do not want the alert to be dismissed. ...

Objective-c asynchronous communication: target/action or delegation pattern?

Hello folks, I'm dealing with some asynchronous communication situations (Event-driven XML parsing, NSURLConnection response processing, etc.). I'll try to briefly explain my problem: In my current scenario, there is a service provider (that can talk to a xml parser or do some network communication) and a client that can ask the servi...

trackPageView on Google Analytics for iPhone Not Working

I'm trying to get Google Analytics working on an iPhone application without much luck. I've followed all the instructions on their website (google/apis/analytics/docs/tracking/mobileAppsTracking.html) and studied their sample application (google/gaformobileapps/GoogleAnalyticsIphone_0.7.tar.gz). When I run my application and go to Go...

AppViewController and Delegate extension changed to .mm, #import "OpenFeint.h" gives error that OpenFeint requires Obj-C++

Hi, I downloaded OpenFeint version 2.3.1, unzipped and placed the OpenFeint folder inside right underneath my project in Xcode, and checked "recursively create groups if needed" (the instructions said to use groups and not a folder reference). I renamed my AppViewController and AppDelegate .m files to .mm. I followed the rest of the inst...

iphone code - change the tabBar badge value from the viewController's

Hi, I have a UITabBarController, How can I create/update the badge value of the tabBar item from my viewController ? The tabBar item's created in the ib. I connected the tabBar item to the controller using an IBOutlet UITabBar *tabBar. thanks. ...

xcode - organize the code (straighten)?

is there a way to organize the the position of the code (straighten ...) automatically? ...

Cannot find NSExpression while compiling for OSX 10.6

I am building a very simply Core Data + Core Animation application. While compiling for OSX 10.6, 64 bits, Xcode keeps throwing the error: /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h:16:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreData.framework/Head...

Working with paths from [[NSBundle mainBundle] resourcePath]

I'm sure it's a very basic problem, but I'm having trouble finding anything about it. Say I've got my app in a folder, in some more folders, like this: MainFolder > SecondaryFolder > AppBundle.app > all the stuff Then, what I want to do is access a file that is in the "MainFolder". I know I can get the path of the AppBundle by using...

Why does my image in a UIView object go beyond the borders?

Hi, so I have a UIImageView in a UIView but when I run it in the iPhone Simulator, the image goes beyond the boundaries of the UIView. What's wrong...? ...

objective-C syntax beginner question

Hello, i want to use the appRecord.myName in the viewDidLoad, when i put it there it error up that appRecord is undeclared, how to declare it? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"pilotWay"; static NSString *PlaceholderCellI...

(iPhone,Obj-C) Where does this "view" property come from?

I ran across this segment of code (in .m implementation file in an IBAction instance method): UIActionSheet *actionSheet = [[UIActionSheet alloc] ...]; ... [actionSheet showInView:self.view]; self refers to the button but I wanted to know where I could find out about this "view" property since I looked up UIButton, UIView, NSObject, b...

Interpreting clang static analyzer messages

Why does the Clang Static Analyzer (CSA) output the following message: Although the value stored to 'self' is used in the enclosing expression, the value is never actually read from 'self' for the following method: - (id)init { return (self = [super initWithStyle:UITableViewStyleGrouped]); } The code works as expected,...

deep mutable copy of a NSMutableDictionary

I am trying to create a deep-copy of a NSMutableDictionary and assign it to another NSMutableDictionary. The dictionary contains a bunch of arrays, each array containing names, and the key is an alphabet (the first letter of those names). So one entry in the dictionary is 'A' -> 'Adam', 'Apple'. Here's what I saw in a book, but I'm not s...

objective-C syntax beginner question

what is the syntax to use an object (NSString) that declared in another class? object workId in class works, i want to use it's value in class jobs. thanks. ...