objective-c

Correctly convert NSString to NSnumber

Hi guys, I can't figure out why it's not working, I have a NSString which I need to convert to NSNumber (to save it to Core Data) e.g NSLog(stringNum); returns 1 NSNumberFormatter * f = [[NSNumberFormatter alloc] init]; [f setNumberStyle:NSNumberFormatterDecimalStyle]; NSNumber *myNumber = [f numberFromString:stringNum]; [f releas...

can we seperate the audio file into packets based upon the diffrent frequency of the file??

Hi friends can we seperate the audio file into packets based upon the diffrent frequency of the file?? if so please assist me ...

Replacing the content of UIImage(s) loaded from XIB at runtime

For a concept I'm developing, I need to load XIB files manually and by using class and instance method swizzling I have been able to intercept calls to imageCustomNamed, imageCustomWithContentsOfFile and imageCustomWithCGImage for the UIImage class and initCustomWithImage for UIImageView. What I want to to is detect the image name and re...

NSArray sortedArrayUsingSelector

hello all , I have NSMutableArray that i need to sort . to do so i use sortedArrayUsingSelector this function return me NSArray with the objects sorted. my question is: if i want to sort the original array again do i need to release the previous sorted list that i got or just to sort it again ?? thanks ...

how to hide the selection of the button in iphone.

when i press the button i get the blue color , is there any way to just avoid getting that blue color when i press the button. ...

Sorting the strings in an NSMutableArray in Iphone Sdk?

Hi Guys, I have objects in my NSMUtableArray and I need to sort them in descending order based on the tax.taxName.Can any body suggest me how to do this. Hope I get Quick response from you guys. Thanks in advance. Monish. ...

Navigation Controller and Table Views

I am creating an application which I want to have a view controller with buttons as the first view controller with no navigation bar, and then when the user selects a button a table view controller appears managed by a navigation controller. At the moment I am setting up the navigation controller in the app delegate and setting the top ...

UIImage perspective correction

I'm looking for a way to apply a "perspective correction" to an image in an iPhone app. This question explains how to apply a perspective distortion, what I want is exactly the inverse operation... Any idea how to do this? ...

Add Customize Image launching the app in iPhone?

Hi, When i touch my app in iPHone Simulator first black page will come for few millin seconds then out page will come. how should i add images instead of that black page. Please help me out? Regards Sri ...

Read Text from a pdf file

Dear if you think if fetching text from pdf file is so easy than please send the solution to me. ...

iphone smtp client library

Hello, any one knows an objective-c smtp library for use in iphone app. I use skpsmtpmessage http://code.google.com/p/skpsmtpmessage/ but it sends message body as attachment when send mail to gmail. thanks. ...

Separate clickable part inside NSButton.

Hi, I have this idea of having some kind of "badges" in my app. They should be clickable, have an image and a label. That's the easy part. But I also want them to have this little help button in the upper right corner which is also clickable. The help button should just be an image and should of course also be clickable. What would be t...

Using MPMoviePlayerController + AVAudioPlayer + AVAudioRecorder in IPad

Hi All, I am using MPMoviePlayerController and it is being used to play a silent movie(movie has no sound). The sound for the movie is played with AVAudioplayer in sync with the video, we have diferent audio file for each movie. Also user can record his voice while the movie and the audioplayer is running.Also i want the movie, audioplay...

Is there a way to rotate the view after it has loaded completely?

I am looking for a way to rotate a view after the view has been load when it has been present as a modal view. I envoke my view by calling: [self presentModalViewController:cntrol animated:YES]; And in that modal view controller i am rotating via: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation...

Effective way to design and manage iPhone application similar to settings

I would just like to clarify that by 'design', I mean software design, not UI design. I have an application similar to the native settings app. The problem I have with it is it doesn't follow the same clear-cut MVC style. Other apps tend to focus around displaying one kind of thing. In the case of a periodic table app for example, it's ...

Understanding Unicode composed character sequences within an NSString

I'm trying to understand NSString's and the complexities regarding composed character sequences. I'm having troubles creating strings containing these composed character sequences for me to be able to play around with them. I've seen the Unicode list of sequences but I'm unable to find these characters in the Mac OS X character selecto...

How set size NSWindow, relative NSTextField height?

Hi guys! How to set size of NSWindow relatively to the height of NSTextField ? ...

How to get a DTD's public and system IDs with NSXMLParser

I'm trying to retrieve the public and system IDs for a DTD in an XML document via NSXMLParser. While NSXMLParser in principal offers publicID and systemID selectors they don't seem to work for me. The doctype tag looks like this: <!DOCTYPE Article PUBLIC "-//SoftQuad Software//DTD Journalist v2.0 20000501//EN" "file:///C:/Program%20File...

how to find MAC address in MAC OS X programmatically ?

Hello, I am new to Mac OS X and X code and want to know how to find the MAC address of a machine programmatically in OS X. ...

another question about line break in UILabel

Hi everyone, I'm struggling with line break in UILabel. I'm generating xml in vb.net and then parse it in iPhone application. xml contains text which initially contains html tags such as , so I can and need to replace these tags with something to add a linebreak in iphone How can I do it? I tried \n , \n\r, they a not working Any help ...