I am new to objective-C and I'm having a lot of trouble trying to add new rows to a table. The way it is suppose to work is, when the app loads an alert pops up asking the user if they would like to, start a new configuration, load a saved configuration, or resume the last configuration. Now if they select start a new configuration, th...
I have seen this thread on how to execute terminal commands from within a Cocoa app. But I want to actually launch Terminal.app to a specified directory.
I know that the following does not work:
[[NSWorkspace sharedWorkspace] openFile:folderPath withApplication:@"Terminal"];
Terminal tries to actually open the folder as a file.
Is t...
My app has a main screen that the user always starts at, and from which I want to display other views programmatically. I set up the app identically to the approach in "Beginning iPhone Development" Ch. 6, which is to use a RootViewController that loads in other view controllers.
The book uses a button to trigger loading the next view c...
To understand my needs, please read followings.
user taps on a button.
a uiimage picker view controller displays
user selects an image
a thumbnail view of selected image should be saved in my application.
( like ui picker view has after selecting albums, there is thumbnail view )
Up to three points I can do.
But I don't know about c...
I'm working on a custom button component. I've been reading through the documentation for NSControl and NSCell, and the programming topics associated with it.
What I can't figure out is how to correctly use mouse events in NSCell's. I see that NSControl subclasses NSView, which implements NSResponder - so implementing mouse events in th...
Long time Windows developer, 1st time Objective-C/iPhone developer wants to create a dictionary of arrays that can be displayed in a plain TableView with alphabetic sections.
The source for this dictionary of arrays is an array containing store names sorted alphabetically:
Apple Store
Atlanta Bread Company
Borders
Build-A-Bear Workshop...
I'm creating a shareware Cocoa app and I wanted to know what is the best way to put in a "nag screen". Basically before the main window of the app shows, I want to have a window with some text, a register button, and a "Not Yet" button (which is disabled at first). There will be a timer on the Not Yet button so the button title will chan...
Where can I find documentation on the maximum number of threads allowed in an iPhone application, and what are your experiences with thread performance?
Thank you!
...
Does anyone know how to use setLeftCapWidth on the mac? I know that Apple uses it in iChat and atebits uses it in Tweetie for mac. So does anyone know how to re-create it?
...
I'm having trouble with section 4 of the stanford iphone class on assignment 1b.
I am having trouble understanding how I will build the array and what
the assignment expects.
Should the array be a "global" variable? Where should I define that?
Will each of the other subfunctions add their variables to the array?
Is the PrintIntrospect...
I'm slightly confused when to use CALayer on the iPhone or Mac and when not to use it? CoreAnimation works just fine on my UIView based objects without having to use CALayer. When is the appropriate time to dig into this class?
...
I'm doing this to learn about class creation and to test geometry routines. As I build the class I will add other polygon-related functionality like getting the bounding box, determining convexity, turning the poly into triangles and the like.
Is it best to put that kind of code in functions or in methods of the class?
...
I am building an IPhone application (first one) that needs to send data to the server and responds back data from the server. As im a .net developer I though of creating a web service with 2 call (GetData and SendData) with 1 parameter that sends in XML Data. These will send and get call which will include media content e.g. a picture.
...
I'm currently using the following to check whether Wi-Fi is available for my application:
#import <SystemConfiguration/SystemConfiguration.h>
static inline BOOL addressReachable(const struct sockaddr_in *hostAddress);
BOOL localWiFiAvailable()
{
struct sockaddr_in localWifiAddress;
bzero(&localWifiAddress, sizeof(localWifiAddre...
I am building a Core Data model and one of my classes needs to have a variable that can best be implemented as a typedef. Right now I am implementing it as a string variable that takes three possible values, but of course this is not robust.
Is there a way to implement this in the Core Data model?
...
I have a compiler error and I just can't work out what is wrong. I am new to this so stuggling to decipher the error.
In my .h I have...
@interface LongViewController : UIViewController {
IBOutlet UIImageView *loadImageInto;
IBOutlet UIImageView *loadedInto;
}
-(void)fadeIt:(UIImageView*)imgNamed;
And in my .m...
-(voi...
Hello,
How can I convert an NSString containing a number of any primitive data type (e.g. int, float, char, unsigned int, etc.)? The problem is, I don't know which number type the string will contains at runtime.
I have an idea how to do it, but I'm not sure if this works with any type, also unsigned and floating point values:
long lo...
Hey guys,
I want to know if I can slowly increase the alpha MainWindow when I open the app and when I close the app. I know it may involve timers, and things like that, but I never dealt with this kind of thing before. I need your help guys...!
Kevin
...
How would I use outlineView:isGroupItem: to give the root object in an NSOutlineView a Gradient background?
...
Hey all,
How do I use an NSTimer. Can anyone give me step by step instructions?
Thanks,
Kevin
...