objective-c

iPhone PDF and Microsoft Word Searching

I am developing an iPhone application and have been able to successfully allow my users to view PDF and Microsoft Word documents using the UIWebView control. The next requirement that I would like to meet is to provide the capability to perform a keyword search on an open PDF or Microsoft Word document. I would also like to go beyond...

Get just the rotation from a CGAffineTransform

Hi, Is it possible to get just the angle of rotation from a CGAffineTransform that also has translation and scaling values? If yes, how? Thanks in advance! ...

Find UUID of connected Iphone devices from the objective-c on the mac

Can I find UUID of connected Iphone devices from the objective-c on the mac? Something of a list of connected Iphones trough the usb cable. ...

Retrieving cells in tableview

I have a tableview that once a cell is clicked, it pushes tableViewB, which contains customcells. These cells contain TextFields. Once the user does any updating, they click "Save", which then pops tableViewB and goes to the first tableview. I would like to get all of the textfield values from tableViewB when Save is clicked. What is...

Disabled touch when UIProgressBarHUD is shown

Hi all, I've created an app where I'm creating a UIProgressBarHUD to show that something is loading. My question is, how can I disable the view so nothing can be pressed untill the loading is finished? I've tried setting: [self.view setUserInterationEnabled:NO]; However this doesn't work :/ Here is the code I'm using for adding the...

Under what conditions can the object at an address change? (obj-c)

I have a controller with a delegate. @interface MyConversionController : NSObject { id <ConversionDelegate> _delegate; } @property (assign) id delegate; @end @implementation @synthesize delegate = _delegate; @end I'm getting Unrecognized selector sent to instance 0x36c4a0 errors. I've set a breakpoint on the -(void)setDelegat...

Memory behavior of / Possible memory leak in UITableView

Hi guys, I am profiling my iPhone application with the 'Activity Monitor' Instrument. When I use UITableViews and scroll through them, I see the memory usage of my application go up all the time while I scroll. When I return to the previous view and the UITableViewController gets deallocated, the memory usage goes down a bit, but not to...

Loading a wallpaper (or background layer) in a Cocoa app

I have created a very minimal OS X install on a USB stick to use as emergency boot media. Basically what the install is, is a clone of the Mac OS X Install DVD with the installer and packages stripped out. I have my own launch daemon starting an app launcher when the install starts. The problem right now is that the wallpaper is just a ...

Dot notation dealloc?

@property (copy) NSString *name; @property (copy) NSString *orbit; @property (copy) NSNumber *mass; @property float surfaceTemp; @property float rotationSpeed; Currently Have this - (void)dealloc{ [name release]; name = nil; [orbit release]; orbit = nil; [mass release]; mass = nil; [super dealloc]; } If I...

NSMutableArray converted into UICachedDeviceRGBColor at execution time

Hi guys! Now I'm working on an iPhone project and I'm using instances of the class NSMutableArray and suddenly, with no reason, at execution time the NSMutableArray converts into a UICachedDeviceRGBColor becoming unusable. I do not know what to do, the same object had been working fine until today. I got this error: *** -[UICachedDe...

Re-used UITableViewCell showing old UIImageView for a moment then switches to correct image.

So I've built a custom cell for a UITableView. My subclassed UITableViewCell has a UIImageView in it. When scrolling through the table view, as the new cells appear, the "left-over" images from the dequeued cells are shown for a moment until the new image loads in it's place. I've tried [cell.myImage setImage:nil] but that doesn't s...

implementing GCMathParser on iphone

hello, i am trying to use the GCMathParser for an iphone application and i cannot find any support on implementing this framework. people keep saying its easy and im kinda confused, any help would be great thanks! ...

How to send a "Cmd-C" keystroke to the active application in objective-c, or tell the application to do a copy operation?

Getting the active application is not a problem, I already have this implemented. What I want to know is how to send a "Cmd-C" key combination to the active application so it puts the selected text in the clipboard (general pasteboard). Or even better: how to tell the active application to do a copy operation without sending the keystr...

Getting an Uniform Type Identifier for a given extension

Hello, I'm trying to find some way in Cocoa to translate from file extensions to Uniform Type Identifiers. That is, I want to find some way of doing this: ".jpg" => "public.jpeg" ".html" => "public.html" ".ttf"=> "public.truetype-font" I've searched on the NSWorkspace docs but couldn't find anything. The closest I could get was: - (...

Debug 10.6 Project into 10.5?

Hey all, Can I debug a 10.6 project into a 10.5? I have computers at school that are still 10.5 and I need to downgrade it so I can run my program on their computers. Thanks,, Kevin ...

Determine if a network share exists before mounting

I'm working on a tool to automatically mount network volumes based on what wireless network the user is connected to. Mounting the volume is easy: NSURL *volumeURL = /* The URL to the network volume */ // Attempt to mount the volume FSVolumeRefNum volumeRefNum; OSStatus error = FSMountServerVolumeSync((CFURLRef)volumeURL, NULL, NULL, N...

Moving an ImageView within the inner-Boundry of a subview

Good day all; Firstly, either a process or pseudo code is hopefully sufficient to my question (obj-c code is very welcomed if you can spare the time and effort). I have a UIView the contains many subviews that represent a path to travel along. These subviews (notionally) have a border and hence an inner boundary in which a sprite's mov...

Objective C - Are SystemSoundID's (typedef'd UInt32) automatically assigned 0?

- (void)playAlarmSound:(NSTimer *)theTimer { static SystemSoundID soundID/* = 0 */; // ? if (!soundID) { soundID = [Utilities createSystemSoundIDFromFile:@"beep" ofType:@"caf"]; } ... } Is SystemSoundID (which is a UInt32) automatically assigned 0? or should I explicitly assign it? I have to do it this way and t...

Can i define UIView as a variable in Objective-C?

According to documents i read, they always show that I should define a subview in a class. Like this : @interface PolygonView : UIView. I have to inherit from UIView. Could i define a variable with UIView type in a class which inherit from NSObject? After that, i make a connection from that variable to UIView which is defined in Inter...

AVAudioPlayer turns off iPod - how to work around?

I use AVAudioPlayer to play sounds in my app, but it turns off the iPod when a sound plays. Is there a way to prevent this? I don't want to use System Sounds because I can't control their volume. Thanks for your help. ...