Apple's documentation for NSPrintInfo states in part:
A shared NSPrintInfo object is automatically created for an application and is used by default for all printing jobs for that application.
The method sharedPrintInfo returns the shared NSPrintInfo. What's not explicitly stated is if you alter that object (e.g., by using setOrie...
I'm having some problems with the accelerometer. When I first started develop my game the controls felt very snappy and precise, but when adding more graphical elements the accelerometer feels like it's reacting very late and sometimes not as precise as before. I'm having a framerate of around 40fps.
This is where I read the values (as ...
Prior to xcode 3.2.1, you could cycle through the list of files your in history through a keyboard shortcut (Cmd + Option + L/R Arrow key).
Now this set of keys will give you the history within the file (ie all of the actions you've performed in this file).
Is there a way to navigate with keyboard only between files you have open in yo...
Hi there! Im using a UIWebView to access a website, when i rotate the phone (landscape) the UIWebView is properly resized and the scrollbar are on the right place (on the right edge...) but when i acess any of input fields to fill the information required and exit it the UIWebView scrollbar jumps to the middle of screen (looks like it ge...
I'm passing some NSManagedObject data between two threads using NSOperationQueue with concurrency level to max of 1 and I'd like some suggestions on whether I'm doing this correctly.
Since NSManagedObject is not thread-safe, I'm sending in the NSManagedObjectID from ThreadA (main thread) to ThreadB via an NSOperation derived class. The ...
Hi all,
Based on Apple's TableViewSuite sample project (http://developer.apple.com/iphone/library/samplecode/TableViewSuite/index.html) I've taken the structure of number 5 there, to create custom drawn table cells. This is working great, and scrolling speed is fantastic now compared to when I was using nibs.
It has however introduced ...
Hello,
I set some values to NSUserDefaults and if I retrieve them without exiting the app, everything works fine.
When I restart the app, the changes disappear in 95% of the time. In 5% of the time everything is being saved ok.
I'm facing this problem for the first time. In my other apps I don't usually save NSString in NSUserDefaults....
I've been having some trouble with Snow Leopard's new block-based API for observing notifications from NSWorkspace's NSNotificationCenter.
If I register for notifications using the traditional selector-based method, then I am able to observe the desired notification. If I try using the new method that takes a block, then it doesn't work...
Hey guys,
Can anyone give me a head starters on this question. How would I be able to make an app that searches through your music contents that are already synced on your phone and play them. I don't want to do a scroll view, where the user just presses on the options. Instead I want the user to type the song name and if the song is f...
I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be undone/redone without interfering with the main managed object context.
The editing window is launched using runModalForWindow:. If I make...
Hey fellow programmers,
I'm pretty new to the Objective-C world and I have a long history with .net/C# so naturally I'm inclined to use my C# wits.
Now here's the question: I feel really inclined to create some type of simple Objective-C collection to hold primitive types because I do not like the whole concept of wrapping a primitive ...
Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in a view based project
...
Hi all,
Is there any way to obfuscate Objective-C Code ?
Thanks
...
I have created two cocoa controls on my GUI. NSButton and NSTextField. When user clicks on the button, button handler will be executed. It will make button disable and NSTextField enable. On end editing, the string of text field will be shown as a button title.
button click
{
- Make button visible = false;
- Make text field visible =...
I've got a UITableView and I can't figure out how to get the size right.
My app is based on the Tab Navigator template. One tab's view loads a NIB that contains a Navigation Controller. The root view controller of the Navigation Controller has it's class set to a UITableViewController that doesn't have a corresponding NIB. The UITableVi...
Hello, I've found a couple of libs (LiteZip and ZipArchive) that allow to unzip files on iPhone. But both of them require an input as a file. Is there a library that allows to directly unzip NSData containing zip-archived data without writing it to temporary file?
I've tried to adopt mentioned above libs for that, but with no success s...
Code below is a simple c# function return an int array.
I would like to know how to convert it to Objective-C
private int[] test()
{
int[] a = new int[2];
a[0] = 1;
a[1] = 2;
return a;
}
...
whenever i add this line of code
ABPersonViewController *personController = [[ABPersonViewController alloc] init];
im getting this error message
".objc_class_name_ABPersonViewController", referenced from:
...
Hi,
I need to develop an application that needs to call another application which is in the local host.I have already posted the same question in the stackoverflow and i got the anwer and implemented it according to it. But i did not get the ouput in the iPhone simulator.Guide me in the coding what is the mistake such that it appears wh...
Hi,
i have a void, like -(void) doSomething in a specific controller.
i can call it in this controller via [self doSomething], but i don't know how to call this void from another .m file.
I want to call it in a -(IBAction) action:(id)sender
I've tried using performSelector, but i got a 'unreconiezd selector send' in the log.
I've no ...