Hello
In one of my first Cocoa applications I have just a single window with 2 NSTextField instances - for user text input and of output of text processing.
If my user clicks on the red x on the top left, the window closes but the application is still running and icon stays in the dock - the normal Mac behavior.
When the user double-c...
After making a quadratic equation solver for the iPhone I want to take it a step further by giving the user the ability to view the graph of the solved quadratic equation. I need some guidance on how to do so using the iPhone SDK and the available frameworks.
...
its very strange problem which I am facing with my iphone cocoa application. Actually i have to add an image over playing video(i am adding that image on the key window). and then do some event handling with that added video like i have to change the video file when i tap on that added image. i am able to do all this work and its workin...
Is there an equivalent of the .NET ManualResetEvent class available for use in Objective-C / Cocoa?
...
I'm learning ObjectiveC and ran into a problem relating to introspection. Basically, I'm looping through an array of objects and determining if they accept the lowercaseString selector. If they do, I call that selector on the object. After I ensure that the object responds to that selector, I call it. However, when I do, I get this warni...
Hello,
I am using an NSDocumentController subclass to do some custom stuff when I create my NSDocuments. The strange thing is that when the document is created, the Save option in the menu is disabled. The problem is that I use the save function to save something manually out from the document so it's decoupled from the main NSDocument ...
There seem to be a few camps when it comes to Emacs on OSX; Carbon versus Aqua Emacs. It seems the argument is that Aqua is a bit too far from standard Emacs and if you get too comfortable then you will have trouble using any other build of Emacs.
As a developer who has been trying to get into Emacs for a few months now, I have been us...
Hello.
Is there a way, from within a Cocoa application to change the system network settings (specifically, the proxy settings). I've found that there is a file called preferences.plist in /Library/Preferences/SystemConfiguration that has the settings I want, but I can't figure out how to get the system to process changes to this file ...
I'm using NSOutlineView without NSTreeController and have implemented my own datasource. What is the best way to select an item?
NSOutlineView support already expandItem: and collapseItem:. And I'm missing a handy method like `selectItem:. How can I do it programatically ?
Thank you.
...
@class CLLocationManager;
@interface CLLocationController : NSObject
{
CLLocationManager *locationManager;
}
@property (nonatomic, retain) CLLocationManager *locationManager;
@end
When i write above code is shows me following errors
error: CLLocationManager.h: No such file or directory
warning: receiver 'CLLocationManager' i...
Hi,
I am developing an app in cocoa.I need to show a progress at the bottom bar of window .But i am searching for a solution to put a bottom bar in a NSwindow .Looking forward for a solution
...
- (void)mouseDragged:(NSEvent *)theEvent {
clickPoint = [theEvent locationInWindow];
newPoint.x = centerPoint.x - clickPoint.x ;
newPoint.y = centerPoint.y - clickPoint.y ;
NSLog(@"Click Point : X=%f Y=%f",clickPoint.x,clickPoint.y);
NSLog(@"Center Point : Click X=%f Y=%f",centerPoint.x,centerPoint.y);
[[[self enclosingScro...
Hi, I have an image which is zoomed to max, in general, for any image, if its width or height
is been scaled beyond 15000f (roughly), the image vanishes.
Is there any way to find whether the image is been zoomed to its max? something like
getPixelsPerUnit ??
Thanks.
...
I am considering using an NSMutableDictionary in place of my current NSMutableArray. This is primarily for KVC/KVO reasons. The collection will undergo heavy mutation within the inner loop of my drawing method. Can I expect to incur a significant performance hit if I go ahead with this replacement?
Cheers,
Doug
...
I'm trying out test driven development in a toy project. I can get the tests working for the public interface to my classes (although I'm still on the fence because I'm writing more testing code than there is in the methods being tested).
I tend to use a lot of private methods becuase I like to keep the public interfaces clean; however,...
When I have NSString with '/Users/user/Projects/thefile.ext' I want to extract 'thefile' with Objective-C methods.
What is the easiest way to do that?
Thanks.
...
Hi, I'm writing an application which is quite graphically heavy and therefore I'm trying to implement a caching mechanism within my view controller that creates a view once, and retains it for future use, similar to the following:
- (UIView *)logoView
{
if(_logoView == nil)
{
_logoView = [[UIImageView alloc] initWithImag...
As I wire up my first fairly complicated Cocoa-Touch view I feel like I'm inadvertently slipping back into old procedural patterns and finding it difficult to shake them off...Though fully aware of many of the Cocoa (OO) design patterns I'm afraid I may be subverting them.
As such this view in question is quickly becoming unmanageable a...
I'd like to import and export from a Cocoa application from/to OpenOffice format. Spreadsheets, in particular, but also potentially text.
I've looked, but I can't seem to find the right combination of search words.
...
I'm trying to update some properties with KVC. The properties have been synthesized.
This line works:
myObject.value = intValue;
This doesn't work:
[self setValue:[NSNumber numberWithInt:intValue] forKey:@"myObject.value"];
And blows up with: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:f...