Hello all!
I have a multidocument application.
I want to pull data from each of those documents and mirror a subset of the data into a global 'management' HUD window that can sit on another screen.
Do I need a global object of my HudController in each document instance or is there a way I can delegate all the info from the various doc...
I am trying to figure out how to hook up a button to play a sound programmatically without using IB. I have the code to play the sound, but have no way of hooking the button up to play the sound? any help?
here is my code that I'm using:
- (void)playSound
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"boi...
I have the following objective-C++ header with the simple method to return this pointer.
@interface MyObj
{
MyCPPObj * cpp;
}
-(MyCPPObj *) getObj;
I have created the simple method
@implementation MyObj
-(MyCPPObj *) getObj
{
return cpp;
}
Everything seems to work until I actually try to use the object in another file
newObj =...
I've created a program that uses core data and it works beautifully.
I've since attempted to move all my core data methods calls and fetch routines into a class that is self contained. My main program then instantiates that class and makes some basic method calls into that class, and the class then does all the core data stuff behind t...
I am trying to load a table view from a cache very quickly and have the cached data in the table view appear. Then I want download new data, and then reload the table. Right now I am downloading the new data on viewDidAppear, but the view still refreshes before it displays. Any idea how I can do this?
...
I noticed that the iPhone OS is pretty good about picking out Integer values when asked to. Specifically, if you use
NSString *stringName = @"6(";
int number = [stringName intValue];
the iPhone OS will pick out the 6 and turn the variable number into 6. However, in more complex mistypes, this also makes the int variable 6:
NSStrin...
I need to add a custom attribute to the selected text in an NSTextView. So I can do that by getting the attributed string for the selection, adding a custom attribute to it, and then replacing the selection with my new attributed string.
So now I get the text view's attributed string as NSData and write it to a file. Later when I open t...
Hi all,
We often cache image and data to improve our iPhone app's performance. But what strategy do you use to manage the cache data, such as delete or update it?
I saved the images to TMP folder, but don't know when should I trigger to "checking out of date cache data and delete it": when the iPhone apps starts, or quits, or in idle t...
For my iPhone app, I'm consuming a RESTful service and getting JSON. I've found libraries to deserialize this into an NSDictionary. However, I'm wondering if there are any libraries to deserialize the JSON/NSDictionary/Property List into my object (an arbitrary one on my side).
The java equivalent would be the object-relational mappers ...
Hi,
I'm creating an application that emulates MacBook's multi-touch Trackpad. As you may know, on MacBook's trackpad
if you swipe 4 fingers up, it triggers the Show Desktop.
if you swipe 4 fingers down, it shows the Exposé.
However, if the Show Desktop is being activated and you swipe 4 fingers down, it will come back to the normal ...
Hi all,
I need to get the binary data of a download link.
When I run this link in the browser it always starts download manager. Rather I would like to copy that binary and display it on teh browser. How is this possible in any language.
Objective c or c# preferred.
Thanks
...
I am trying to programmatically change the user interface of a UIViewController from another NSObject class. The problem is that I am unsure of how to access the UIViewController's view from the NSObject class. So for example, in my NSObject class, I say something like:
self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480...
I am making the cover flow model on the iPhone using the tutorial found here:
http://www.chaosinmotion.com/flowcover.m
I want to move the cover flow animation up in the screen at height of about 150, but when I change the starting y point of the rectangle, then my image is cut off from the top. How can I prevent this?
...
Hi there,
I am interested in creating a server application on the Mac and a client application on the iPhone. The iPhone would send commands to the Mac through this connection.
What's the easiest way to do this? I've seen NS/CFNetServices discussed here:
http://stackoverflow.com/questions/1848525/ad-hoc-wifi-connection-between-iphone-...
I have a requirement where i need to enter a text in the text field and when i come out of the view and again open the same view where text field is present, i need the text entered earlier need to appear on the textfield(caching) before the user enters the text for the second time.. Please help me..
...
I am trying to access UIViewController's view in a NSObject class. The NSObject class is suppose to programmatically change UIViewController's user interface. I tried accessing NSViewController's view in NSObject by using self.view but was told that "request for member 'view' in something not a structure or union.
After a few inquiries...
I am trying to apply cgaffinetransformrotate transform to uiimageview. However the image edges seems to be jaded. Is there any workaround this problem. If I apply rotate angle to 90% than I don't see these jaded edges. I need to apply smaller angles, this is where I see the problem
Thanks,
...
I need to catch two different swipping gestures using UISwipeGestureRecognizer(for example, UISwipeGestureRecognizerDirectionRight and UISwipeGestureRecognizerDirectionLeft). When I add two different recognisers with addGestureRecognizer method, only last added recognizer works. I've read that I need to implement gestureRecognizer:should...
Hi guys,
I am having code
ItemsController.h
UITextField* quantity;
UITextField* rate;
UITextField* tax2;
ItemController.m
quantity=[[UITextField alloc]initWithFrame:CGRectMake(158,10.5,140,30)];
quantity.textColor = [UIColor blackColor];
quantity.font = [UIFont systemFontOfSize:15.0];
quantity.backgroundColor = [UI...
My IN App Purchase application is running fine in iPhone but when i purchase the item through In App purchase that time i get the message that you have successfully purchase but download hasn't done. So I want to know that by using which code I will download the item and where it will be use to store.
...