CheckBox in tableview
Hai all , I am developing a mac application in xcode.I need to add come checkboxes into the rows of a table dynamically.Is there any way to do that ..Looking for a perfect solution.... ...
Hai all , I am developing a mac application in xcode.I need to add come checkboxes into the rows of a table dynamically.Is there any way to do that ..Looking for a perfect solution.... ...
Hello, For the application I am writing, I need to access some other applications' items, for which Applescript seems the best way to go. I have been using the Appscript framework, which worked well, because it allowed me to thread it and not make my app lock up when an Applescript was taking a while. However, now I am attempting to m...
I've got an SFAuthoizationView I'm using in my app and I'm trying to call the authorize method from my code to prompt the user to authorize if they currently are not authorized. My issue is that this method does not seem to work! My code is as follows, where authView is the SFAuthorizationView and authorizeMe is the method that gets ca...
I want to implement IPC in a Cocoa application using UNIX domain sockets, with which I have no experience. I found Apple's CFLocalServer example project, but it's written in C and looks, well, fairly complicated (and yes, I have read most of it). Are the techniques demonstrated in CFLocalServer still state-of-the-art, or is there a way...
Is it possible to hide one specific application using cocoa? I know you can hide all other applications using the following code [[NSWorkspace sharedWorkspace] performSelectorOnMainThread:@selector(hideOtherApplications) withObject:NULL waitUntilDone:NO]; But is it possible to hide just one specific application say Safari for example...
How can I make my following code "DRY" (Dont Repeat Yourself) - (void)updateLetterScore { // NOT DRY... Must fix if (percentScore < 60.0) letterLabel.text = [NSString stringWithFormat:@"F"]; if (percentScore > 59.0 && percentScore < 64.0) letterLabel.text = [NSString stringWithFormat:@"D-"]; if (percentScore > 64...
I have made some code to do this, but as It doesn't work. I am only a beginner so I may be doing this completely wrong or i may have missed something out. Either way please tell me. Here is the code I have got. [item setAction:(SEL)action { [window makeKeyAndOrderFront:NSApp]; } ...
What is meant by mach_msg_trap error? I'm developing an application with core-data. I get this error when ManagedObjectContext if a different thread is "used" the second time. I've a producer consumer kind of threading system. The producer thread and the consumer thread uses the same underlying sqlite db, but different managedobjectConte...
Hello there is something I try to understand. I have this object declaration in my AppsController-Class for a Cocoa Application NSMutableArray *personArray; In can put this declaration inside the Header file or inside the implementation of the class in the code file. It makes no difference. I can even put it outside the @implementati...
i am planning start my iphone development, and i have a iMac with tiger 10.4 OS version, planning to upgrade to Leopard 10.5.6 OS X, but i heard apple going to release the Snow Leopard in september, will development environment shift to snow leopard instead of leopard,and Leopard 10.5.7 no longer be used to development?is now a good tim...
I know there is a check box for it in IB but that only gives you the colors White and Blue. How would I make it so that it used different colors? ...
How do I populate the content values of a NSPopUpButton dynamically using a XML file? I need to use arrays, right? Please, please provide example code. ...
I am polling an HTTP API - it returns one item at a time, in real-time (about every 4 seconds). As each item is received, I would like a new UITableView cell to be populated. The full list of received items must remain in a class property, I'm guessing an NSMutableArray. What is the best way to initialize an NSMutableArray as a class pro...
When writing Cocoa and implementing a class method that accepts a delegate and one or more selectors to use for its callbacks, does the terminology change from "delegate" and "selectors" to "target" and "action"? More to the point, is "delegate" limited only to when my class is the one getting called, but not when my class is doing the ...
How would you Subclass an NSOutlineView? ...
I'm looking for the standard idiom to iterate over an NSArray. My code needs to be suitable for OS X 10.4+. ...
Hello, I have some product photos, from which I would like to remove the white background. An example: Is there a nice library or a manual way to do it with Cocoa or C? For which keywords (image processing methods) do I have to search? ...
A question similar to Locating bundles by identifier, but different problem: I have several applications that need to locate each other's bundles by their ID. That always works well, unless I do a completely fresh install of all my applications. In many cases it's sufficient to point the finder to the install location for the bundle loc...
I have created a Sub-Class of NSOutlineView and used the below code to make the row colors alternate. Header File. #import <Cocoa/Cocoa.h> @interface MyOutlineView : NSOutlineView { } - (void) drawStripesInRect:(NSRect)clipRect; @end Implementation File. #import "MyOutlineView.h" // RGB values for stripe color (light blue) #def...
I just spent the last 3 hours trying to figure out this error. I would like someone to explain it to me so I don't do it again. I assigned an NSString instance variable without using "self". When the class ("self") released, I received a "bad access" error. I have done this exact same thing in another class with the same variable dec...