How can I get window's title, position and size if it does not support Accessibility API? Accessibility Inspector does not see it at all. Say, it's a xterm window in X11.app (X11->Applications->Terminal).
...
I am an experienced iPhone dev beginning to work on my first Mac app. One thing that is really throwing me off is the differences between UIView and NSView. It seems that I cannot set the background color of a NSView via interface builder as I can with a UIView. It also seems that I cannot do it by simply sending a setBackgroundColor: me...
I have and NSMutableArray and I want to replace it with another, but if I try to do it like this...
firstArray = secondArray;
...then it seems to erase the entire firstArray and I get this error message..
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0...
In my Row class I have the initWithCoder method and everything restored in that method works fine, but only within the method. After the method is called I loose an array of sounds that is in my Row class. The sounds class also has the initWithCoder method, and the sound plays fine but only in the Row class initWithCoder method. After de...
Ok guys, so im new to iPhone development, so apologies if this is a silly question, but before i actually create my app i want to know if this is possible, and if Apple will reject this.
(Note this is all theoretical)
So i'd have a API (.NET) that runs on a cloud server somewhere and can return HTML/JSON/XML.
I'll have a website that ...
Hi,
I am trying to construct a graph using cocoa.To display the points on x -axis and y- axis i used methods called drawATPoint and drawinRect which allows to draw apoint inside rect not out side .
So please mention if there is any solution to display the points.I am using the following code.
NSTextStorage *textStorage = [[NsTextStora...
Hi,
I am developing a desktop application in which I want to change the color of the title bar of the NSWindow. How exactly can I do it?
Could someone help me out?
Thanks and regards,
Deepa
...
Hello,
I have an NSImageView which is set to editable. I would like to be able to revert to a default image when the user deletes the image. I've tried changing the value that the NSImageView is bound to in the setter, but the getter is not called afterwards, so the NSImageView is blank, despite the bound value being set to another imag...
I have an iPhone project which references a framework as a subproject.
The framework has the following configurations:
Debug
Release
My app has the following configurations:
Debug
Release
Distribution-AdHoc
Distribution-AppStore
I would like the framework to be built with different configurations, depending on the app configurat...
I have a table view that gets refreshed two different ways. Both are through a button, and as a matter of fact, both are through the same IBAction in the same class!
Here's my problem:
The buttons are in two different .xib files, the button in the same xib as the table view works perfectly, while the one in the different xib does the ...
My program needs to observe changing in windows order and position. Like when some window gets above another or moves somewhere. Could it be performed with Cocoa (Window Services, Notification API)?
...
How can I set the selection color? In this case, it's the color of a selection in an NSTableView
edit:
Here's my subclass:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
NSBezierPath *windowPath;
windowPath = [NSBezierPath bezierPathWithRect:clipRect];
[[NSColor greenColor] set];
[windowPath fill];
}
The only problem is th...
I'm amazed at Transmission, a BT client. It has a Mac, a GTK+, a QT, a Web Client and a CLI interface to it.
I tried reading some of it's source to understand how he creates all these interfaces, but no luck.
Does the developer creates them using a single ide? Or does he create the interface logic in each specific environment (speciall...
How can I get status on a printer from a Cocoa app.
I would like to get the number of queued jobs and the current status of the printer (running, paused, error, etc).
Thanks
...
The following line of code displays an image on my application window, within an NSImageView control named outputImageView. I used Interface Builder to put the NSImageView control onto the window, initially (then bound it to outputImageView). How do I change the size of the NSImageView control within my program, so that it matches the ...
I'm trying to use setContentBorderThickness:forEdge: to create a bottom bar in a Cocoa application.
mipadi was on to something, but in testing it out, I think maybe this is a slightly different problem:
-(void) adjustContentBorderBasedOnArrayControllerSelection{
if(([[self.resultsArrayController selectionIndexes] count] == 0)){
...
I'm developing an iPhone app that uses the Extended Audio File Services. I try to use ExtAudioFileRead to read the audio file, and store the data in an AudioBufferList structure.
AudioBufferList is defined as:
struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList AudioBufferLis...
I just created a new Xcode project. In the AppControl class Header file I have the following objects defined (and some other ones, too):
IBOutlet NSImageView *inputImageView;
IBOutlet NSImageView *outputImageView;
IBOutlet NSTextField *myNoiseLevel;
IBOutlet CGFloat *mySharpness;
After putting the basic code int...
There is always a pre-written function at AppDelegate:
(NSString *)applicationSupportDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : NSTemporaryDirectory();
return [basePath stringByAp...
I get the directory path from fsevent, such as "/User/Data/"
But what I really want is "/User/Data/change.txt"
I have read the programming guide, it said
typedef void ( *FSEventStreamCallback )(
ConstFSEventStreamRef streamRef,
void *clientCallBackInfo,
size_t numEvents,
void *eventPaths,
const FSEventStreamEventFla...