objective-c

iPhone MPMoviePlayer obtain buttons view.

Can anyone suggest me how to obtain the view that contains all buttons from 'MPMoviePlayer'? If you don't know, at least how you obtain the main view/window of the MPMoviePlayer. UPDATE: I need to do this to add a button on the controller view. It would look something like this: Thanks in advance! ...

How do I link to an Objective-C category within a Doxygen comment?

Say I have an ObjC category defined as @interface NSObject (L0SomeCategory) that defines a -doSomething method that I documented. How do I link to its docs from another Doxygen block? I tried unsuccessfully: NSObject::doSomething NSObject(L0SomeCategory)::doSomething L0SomeCategory::doSomething Any ideas? ...

NSPopupButton, updates depending on another NSPopupButton

Hi all, I wish to make a city/country selector using 2 NSPopupButtons. One popup button will contain the first part e.g. UK, and the second one will contain the second part e.g. London So the whole city/country combo will read: UK London however, I want the second part to be updated when the first part is selected, e.g. if London is sel...

calling functions in other classes when UIButton is hit

Hi, I'm using a UITabBarController to keep track of different views for an app. In one view, the "quiz controller", I have the user select numbers from segmented controls and then I store their answers in an integer array. At the bottom is a 'submit' button which, when hit, should call a function in another view to display results using ...

Alternative paradigm for Mac OS X development

The current standard way of developing Mac OS X apps is with XCode/Objective-C/Interface Builder using the MVC paradigm. Is there an alternative? I'd like to use Interface Builder (XCode too) however I would rather use a different programming language. I come from .NET programming where you can delegate a click to a certain function, ...

Aspell Spell Checker on iPhone?

I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework. Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net? Thank you for any feedback in advance, John ...

How to get NSAlert sheet to return focus to calling window?

I have an OS X prefpane that calls a NSAlert sheet with: [alert beginSheetModalForWindow:[[self mainView] window] modalDelegate:self didEndSelector:@selector(unsavedChangesAlertDidEnd:returnCode:contextInfo:) contextInfo:nil]; Which shows the alert sheet attached to the System Preferences application fine, but when I click the sheet'...

UINavigationBar with a static image

Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push a new view on the stack it animates the UINavigationItem sliding off to the left, along with the titleView, and loads a new UINavigationItem. I can think of a number of ways to go about making that image stay put, but they all seem pretty hacky. Is the...

CGPointMake explaination needed?

could anyone explain to me what GCPointMake does please? image.position = CGPointMake(80,200); id go = [MoveTo actionWithDuration:2 position:CGPointMake(190,460)]; for example this syntax above. I am not quite sure ...

Encoding/decoding CGFloat on 32- vs 64-bit

I'm converting an app to work in 64-bit. The Apple docs state that the CGFloat type is a float on 32-bit and a double on 64-bit. If that is so, how do you handle encoding/decoding of the value? For instance, if creating an NSNumber from a CGFloat, should I use the -numberWithFloat: or -numberWithDouble: method of NSNumber? The same ques...

Automatic "force repel" layout in Cocoa

You know that in a lot of Mac/iPhone applications (such as your Finder), when you are dragging a icon around, all other icons will be "repelled away" from your mouse and leave space for the icon you are dragging. I am wondering if that's a built-in Cocoa function (in layout constraints etc?). If not, is there any library, or documents o...

background moves together with image

I have 4 images and a background. I already about to animate the image to move accordingly. But the back ground is not moving. I am not sure how to make the background move accordingly to the movement of the images. Because each of the images moves differently. this is first image move: - (void)loadIllustration1 { Sprite *illustra...

Creating a constantly updating feed like Twitter

I'd like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is through the app. I want other app users to see the submitted messages nearly immediate. I believe push notification can do that sort of wo...

How to access a local host url in Objective-C for iPhone OS

Hi, I want to access a local host url from an application in Objective-C for iPhone OS. How to access the file which is located in the local host from the calling application???kindly give me a coding example... ...

sending text messages in iphone programmatically

Hi all, Is it possible to send text messages using iphone programmatically ? I think its not possilbe, its more like sending SMS programmatically. Are there any web service or api available for this ? Any suggestions ? thanks ...

Sorting alphabets & numerals

i want to sort an array in such a way that numerals come after alphabets ...

Alert view in iphone

hi i am new to iphone application development, i want to design an alert view, which has 2 buttons, OK and cancel. On Ok Button the i will print say an message hello and on cancel button i will print cancel.. Please help how am i to do it ...

Objective-c stackflow

I am building a small application with the following structure: AppDelegate: Loads the menu Controller MenuController: Controls 4 menu items that are created in the xib file A xib file with the following structure - view - Image View (Background) - Second View (MiddleView) - Navigation Bar - segmentedControl TrackController:...

Solution for iPhone new file dialog keyboard

i want to let the user type in the name of a new file, so there are certain characters i want to prevent entry on. is there a special keyboard i can use or can i disable certain keys on the iphones keyboard. is the answer to just run a regular expression on the input text and tell the user the filename is invalid (if so what would that ...

UIButtons on Photoview

m creating buttons on PhotoView.it works perfectly but wn i zoom the image button doesnt work ...