objective-c

cannot confirm after passing the LinkedIn API authorisation on iPhone App

I have done the authorisation step of LinkedIn-iphone API, and the app comes to the screenshot: But the 'close' button does not respond, and no where to use the authorised PIN. Because it is not finally authorised, the methods like - (void)linkedInEngine:(RDLinkedInEngine *)engine requestSucceeded:(RDLinkedInConnectionID *)ident...

What are the semantics of using retain vs. copy for a property of type NSMutableSet;

Hello, I have been using the most excellent Accessorizer to auto-magically generate setters/getters for my Obj-C code in Xcode. Recently a change was made in Accessorizer: old version of Accessorizer: @property (nonatomic, retain) NSMutableSet *setA; @property (nonatomic, retain) NSMutableSet *setB; new version of Accessorizer: @pro...

Is there a standard way of playing longer sound clips?

I'm currently using AudioServicesPlaySystemSound(_soundID) to play sound clips. My understanding is that this can only be used to play clips under 30 seconds. What is the standard way of playing longer sound clips? ...

passing variables help - total beginer

Ok here is an example of what I'm dealing with at the moment: @implementation ECHOAppDelegate ... @end @interface PtyView (PtyPrivate) -(void)startTask; -(void) didRead: (NSNotification *)fileNoty; @end @implementation PtyView ... -(void)startTask { //starts task } @end Now, if I wanted to "trigger" startTask from the EC...

objC three20 example ttnavigator menu controller page instance declaration

Hi, I tried to understand the three20 ttnavigator example code, and in the MenuController.h file, it is as follows: typedef enum { MenuPageNone, MenuPageBreakfast, MenuPageLunch, MenuPageDinner, MenuPageDessert, MenuPageAbout, } MenuPage; @interface MenuController : TTTableViewController { MenuPage _page; } @property(non...

Can't edit UITableView frame.y

Have a nib file with a UISearchBar on top and a UITableView. wann add an button and some text on top of the UISearchBar's input. so i made (in viewWillAppear): [searchBar setFrame:CGRectMake(0, 0, 320, 90)]; works fine so far (except the position of the input needs to be vertically aligned to the bottom and not to center, any hints o...

Shared Cross-Process Data Object

I need an object/class that keeps data synchronous over multiple processes. Like a singleton instance that works across processes. Is there already a built-in class that can handle this or what's the best way to implement such a thing (NSConnection, NSDistributedNotificationCenter, etc... ?) Regards, Erik Update: Currently I have im...

iPad detailedViewController displaying thumbnails

Hi, I am a newbie and I am developing an iPad application. I am developing an application that gives a list of cars in the Root View and when the user selects a car make, the thumbnail images of the models are displayed in the detailed view controller. I was able to have a table but I am stuck as to how to display the thumbnails. I am a...

What does AudioServicesCreateSystemSoundID do?

What does AudioServicesCreateSystemSoundID do? All I was able to find was this from Apple's site: // Create a system sound object representing the sound file AudioServicesCreateSystemSoundID ( soundFileURLRef, &soundFileObject ); And It isn't very helpful. I always see it created but then never used. ...

Access IVars Directly for Non-objects From Another Class?

In Objective-C 2.0, I usually make an assign property for ivars that are primitive types like float. Then it occurred to me that I can access them from outside the class with obj->variable notation. I imagine that this is bad practice: is it? ...

iPhone/iPad context menu

Im talking about the menu that shows up when you select a block of text it gives you the option to cut/paste/copy. I figured out how to add one more option to the menu, but if I add two or more options it will say "more" first. clicking it will show all the options I added. But is there a way to show all the options I added upfront? with...

Problem while subclassing UIAlertView and using subclass as the delegate.

Hi I'm having a little problem. I subclass'd UIAlertView and I named it UIDisclaimerAlertView. So far so good, the subclass is working fine. But now I wanted to use this very class as its own delegate. So in my subclass I used : self.delegate = self; I did this because I wanted it all in the same class file. Now the problem I'm facing...

Writing a string to disk in OPENSTEP (YellowBox)

I'm debugging an old OPENSTEP (YellowBox) app, written in Objective-C, running on Windows 2000, built with Project Builder. The only easy way I can find to write a string to disk in Obj-C is [NSString writeToFile], a Cocoa/iOS-era method which doesn't seem to have been written yet in the version of OPENSTEP that I'm compiling against (us...

How to pop up from a View before executing a piece of Code

Dear iPhone Developers, I am writing a Navigation based iPhone application. I want to execute a piece of code but before the execution I want the viewController to pop up. The method that I want to implement looks as follows; - (IBAction)executeTheCode { // set a BOOLEAN so that the user can not repeat the same action /...

Scheme to play video file in own container format on Mac OS X

I am planning to write an application (C/C++/Objective-C) that will play media files in own (private) container format. The files will contain: multiple video streams, encoded by a video codec (like XVid or H264, it is supposed, that components capable of decoding the viideo formats are present in the system); multiple audio streams in s...

UITableView cell text not showing?

Hi, I'm not seeing the text for my UITableView show up.. in fact the TableView doesn't appear to be on the screen at all because I cannot select the empty rows. Strangely, my log in cellForRowAtIndexPath shows up ok with the expected data - I just don't see any on the screen. -(void)bindFriendsToTable:(NSArray *)friends{ NSLog(@"frien...

UIAlert for review page

I am fairly new to iPhone coding and wanted to know if someone can help me. Have got the code ready so that when the app loads a UIAletView loads and prompts the user to review/rate the application but i have a button called "Never Rate" I needed help to find out how to code the "never rate" button so what when it is pressed the UI Ale...

How to make UISwitch a BOOL?

Hello! Forgive me if this is a simple question, but is a UISwitch a boolean variable? If it is not, how can I make it BOOL? Please allow me to explain why I'm having trouble. I declared my variable in my FlipsideViewController. UISwitch* mySwitch; //switch used to turn label2 on/off also creating an accessor @property (nonato...

iphone: NSPredicate problem with NSFetchedResultsController

I currently have a 'Topic' entity defined in my system as: @interface Topic : NSManagedObject { } @property (nonatomic, retain) NSString * path; @property (nonatomic, retain) NSString * name; @property (nonatomic, retain) NSNumber * topicID; @property (nonatomic, retain) NSNumber * parent; @end I want to fetch a topic with a specif...

Removing an Object from Autorelease

If I have an object created as autoreleased, is there a way that I can mark it is essentially "not autoreleased"? I feel that I have heard calling [object retain] will do what I am looking for but I am not sure. ...