Is there a way to print an clickable link to the console?
Is that generally possible? Is the console able to format a link so that it is clickable? i.e. a link that launches an application, or anything else when clicked? ...
Is that generally possible? Is the console able to format a link so that it is clickable? i.e. a link that launches an application, or anything else when clicked? ...
I want to use some NSAssert stuff and other things to enable better debugging in my app. NSAssert wants a string which it prints if the assertion fails. Nice, but useless unless you type a whole bunch of information in that string, which can become a big mess when done all over the place. So I want to make a macro that will do the NSAss...
This is an objective-c question. I would like to call a method in an object, but there is no instantiation of the object. Is this possible? The method I want to call is not a class method. ...
Hey guys, How would I update my xcode project to 3.2? I need the app delegate of 3.2, but on my current 3.1 project doesn't have them. Please let me know how to do this. Thanks, Kevin ...
I have a Xcode project from 3.0, and I want to update it to the 3.2 featues. How would I do this? ...
I have just added a Core Plot view to my application based on a tutorial (http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application). I have put the Core Plot drawing code in the windowDidLoad method of the window controller for the window where I have included the CPLayerHostingView. The code for the plot is: CP...
When stepping with the debugger through this, dfString is invalid after [df release] - (NSString*)dateFormatStringWithLocale:(NSLocale*)locale { NSDateFormatter* df = [[NSDateFormatter alloc] init]; [df setDateStyle:NSDateFormatterShortStyle]; [df setTimeStyle:NSDateFormatterShortStyle]; [df setLocale:locale]; NSStri...
I have an application that works on the concept of 'workspaces' that will eventually be ported to Cocoa. In the current Windows incarnation the each workspace is an MDI window which can contains sub windows. These sub windows need to be easily separated, visually, from sub windows in other workspaces since workspace state is saved (not ...
I'm re-reading the first few chapters of Cocoa Programming for Mac OS X and the author states that one of NSCalendarDate's class method returns an autoreleased object. I always assumed that all class methods returned an autoreleased object (since there's no alloc involved). Are there any class methods which you have to specifically reta...
I have a CATextLayer that I want to be able to vertically align within my view. I can set a constraint to align it to the top of the view, to the middle, or to the bottom; but I want to be able to allow the user to change this on the fly. When I set up my CATextLayer, I use this constraint to align it in the middle: [textLayer addCons...
Using Objective-C and Cocoa, does anyone know how to get the icon for a user's computer (the one that shows under "Devices" and "Network" in Finder)? Not the harddisk icon, the actual one for a user's device. It ranges from a macbook icon to the mac pro "tower" icon to a Windows blue screen of death monitor icon. I've tried stuff along ...
Under xcode 3.2 my ObjectiveC + Python/Ruby projects can still be opened updated and compiled, but you cannot create new projects. Given that all traces of ruby and python are missing from xcode 3.2 (ie create project and add new ruby/python file), is there an easy way to get the templates installed again? I found some info about copy...
Looking for a good guide/ tutorial to begin Mac OS X app development, preferably using Cocoa and a language other than Objective C. And maybe some tutorials for interface builder as well? ...
Hi, I have to NSTableViews in my application both display the data which is being stored as "CoreData". The TableViews are pretty basic, as the whole programm is. The right TableView shows a list of checklists, the left shows the contents of this checklist. Now I want to allow a user to drag an item which is inside a checklist to an...
Hello! Until today I've developed and tested by myself all the versions of my app! I would like to begin to release some versions for beta tester, to have a better product to release! But I really don't know how do that! I had thought to upload the beta version on my website in a password protected folder and sent to my testers a notifi...
Using touchesBeganWithEvent, touchesEndedWithEvent, etc you can get the touch data from the multitouch trackpad, but is there a way to block that touch data from moving the mouse/activating the system-wide gestures (similar to what is done in the chinese text input)? ...
i've been playing some time with different builds of my application and there seem strange things to happen: my app has a 5mb idle footprint. when uploading a file memory in size of the file is reserved. after the upload the reserved memory should be freed. now there are differences in the builds (gc = garbage collector): 32bit i386 n...
In Objective-c/Cocoa, how do I get the icon that Finder uses for the desktop (it looks like the black/pink nebula desktop image with a menu bar and dock). I tried this: NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode(kDesktopIcon)]; But all I get is a blue folder with a ghost...
How would I make something in cocoa, where the user would type in "open" (space) "www.google.com" and it would open up a page that was directed to google. If the user didn't type open as the first word it would give an error. Also www.google.com could be whatever the user wants it to be. I know it may seem complicated, but it's similar t...
I am trying to read the header of an SWF file using NSData. According to SWF format specification I need to access movie's width and height reading bits, not bytes, and I couldn't find a way to do it in Obj-C Bytes 9 thru ?: Here is stored a RECT (bounds of movie). It must be read in binary form. First of all, we will transform ...