Hoooboy,
I've got another doozy of a memory problem.
I'm creating a Carbon (AGL) Window, in C++ and it's telling me that I'm autorelease-ing it without a pool in place.
uh... what?
I thought Carbon existed outside of the NSAutoreleasePool...
When I call glEnable(GL_TEXTURE_2D) to do some stuff, it gives me a EXC_BAD_ACCESS warning -...
I call two feeds that both return an NSMutableArray, I then need to make the two arrays into one.
NSMutableArray *array1 = [JSONWrapper downloadFeed];
NSMutableArray *array2 = [JSONWrapper downloadFeed];
// something like: array1 += array2
...
I'm looking for help with a program im making.
I create a *.sh file as follows:
SVN_StatGenAppDelegate.h:
NSWindow *window;
NSTask *touch;
NSArray *touchArguments;
NSString *svnURLStr;
NSString *SVNStatStr;
NSString *destDirStr;
SVN_StatGenApplDelegate.m:
NSString *locationStr = [NSString stringWithFormat:@"%...
Hi,
I'm trying to use cocoa to grab images from a webcam. I'm able to get the image in RGBA format using the QTKit and the didOutputVideoFrame delegate call, and converting the CVImageBuffer to a CIImage and then to a NSBitmapImageRep.
I know my camera grabs natively in YUV, what I want is to get the YUV data directly from the CVImageBu...
I have a piece of Objective-C code that looks like the following:
- (NSString *)copyData:(NSData *)data
{
NSString *path = [[[self outputDirectory] stringByAppendingPathComponent:@"archive"] stringByAppendingPathExtension:@"zip"];
NSLog(@"Copying data to %@", path);
[data writeToFile:path atomically:NO];
return path;
}
...
I'm talking specifically about the kind you get if you click and hold on an app in the dock, or a folder if list view is enabled. Is it a menu style, or a window flag I can set like the brushed metal-style?
Lots of little free apps seem to use it. http://bambooapps.com/free-stuff/ is a good example.
...
I am trying to detect when particular applications are launched.
Currently I am using NSWorkspace, registering for the "did launch application" notification. I also use the runningApplications method to get apps that are currently running when my app starts.
For most apps, the name of the app bundle is enough. I have a plist of "known ...
I've declared a property in a view (created by interface builder, if it matters) and am trying to set the value from the view's controller – like so:
self.view.url = someURL;
That gives this error:
Request for Member 'url' in something not a structure or union
I have included the header for the view in the controller's .m file, but...
Hello,
I want to have a donation box via paypal in a sheet. When the sheet comes down a webview within the sheet loads the donation box website. I want to close the sheet when the user has completed the donation.
Any ideas?
Thanks in advance
...
Hi,
I need to copy a few sample files from my app's resource folder and place them in my app's document folder. I came up with the attached code, it compiles fine but it doesn't work. All the directories I refer to do exist. I'm not quite sure what I am doing wrong, could someone point me in the right direction please?
NSFileManager*ma...
Hi, I'm working on a program that read arp cache from machine. I'm using Cocoa. There's a library called libdnet (libdnet.sourceforge.net) which has arp reading function. But I don't know how to write a code to use that function. Please help.
...
Recently while trying to answer a questions here, I ran some test code to see how Xcode/gdb reported the class of instances in class clusters. (see below) In the past, I've expected to see something like:
PrivateClusterClass:PublicSuperClass:NSObject
Such as this (which still returns as expected):
NSPathStore2:NSString:NSObject
......
I have the following code:
NSMutableDictionary *jsonObj = [parser objectWithString:json_string error:nil];
NSString *test = [[[jsonObj objectForKey:@"questions"] valueForKey:@"owner"] valueForKey:key];
but what I get back is:
(
1a19f089a2bc4ee42bff1c102c6e89b8
)
The actual value is fine, but I get those parenthesis, which show up ...
I have created a spotlight importer for comic files. The attributes are successfully imported and searchable. The one thing that remains is getting the attributes to display in a file's get info window.
It seems that this should be a simple matter of editing the schema.xml file so the attributes are nested inside displayattrs tags. Un...
I'm using BAS in a Cocoa app with a custom prompt for admin password...
But now I want to change the prompt. I changed it in the strings file and it doesn't change. I rebuilt everything and deleted the sockets in /var/run and the launchdaemon and privelegedhelpertools folders. But the prompt just won't change!!!
Help?
...
I'm trying to set the text in an NSTextField, but the -setStringValue: and -setTitleWithMnemonic: methods are not working. Any ideas?
Rgds / a²
...
I have seen the iPhone equivalent of this question here and I'm wondering...
is there an equivalent for bringSubviewToFront: for OS X development? I need something to send an NSImageView "to front".
...
I can't find this answer anywhere. What does it mean when there's a sender parameter in a method header? Does it represent the instance that called it, or the method that called it?
...
Is there a way that lets me run a shell script, and display the output in an NSTextView? I do not want any input from the user to the shell script at all, since is is just called to compile a buch of files. The shell script part works fine so far, but I just can't figure out how to run it and show the output in an NSTextView. I know a sh...
Hi guys, I'm just learning some basic programming in Objective C and Cocoa. I'm trying to get some data from NSTableView. Based on what I read in one tutorial, I wrote this:
NSArray * items = [[itemsTableView selectedRowEnumerator] allObjects];
But then I learned that selectedRowEnumerator was deprecated already in 10.3 Panther and th...