In a normal Cocoa application it's typical to store any saved passwords in the Keychain and thus avoid many pitfalls. Now I'm writing a launchd daemon that needs to store a password and will run before any user has logged in. This means I cannot use the keychain like I normally do.
I see in Keychain Access there is a "system" keychain...
I was wondering how you actually remove objects from the Calender Store, I've looked at the documentation and it only mentions how to add objects but nothing about removing.
How would I remove an object from the calender store?
...
I'm kinda new to Cocoa and I find it hard to tell when to use NSDocument-based architecture vs normal NSApplication to create my application.
I'm creating these toys project to learn Cocoa:
To-Do list app
Chat program (like Adium)
Finance app (Simple double-entry accouting)
Personal bookmark app
CRM-like contact management
Which one...
In a nutshell, I don't want raw text, or even rich text. I want to load an xml document, which has metadata for sections of text, and I want to display that metadata in a drawer when I click on a given text section. A hyperlink is a good example; obviously trivial to do in a web app, but while I'm not that experienced with mac dev, I can...
Hey,
I would like to add the current version into the "about" section of my app.
As seen in this attached screenshot Apple offers versioning.
How do you display these settings in your app?
...
Hi,
I've got a Core Data managed object that has an attribute with a "Boolean" type.
In my header file I've got this:
@property (nonatomic, retain) NSNumber * includeInHistory;
and I'm using a @dynamic includeInHistory implementation
When interacting with an instance of this managed object before saving to disk, I've got something th...
I am using the most stable SWT Cocoa downloads for Mac OS X and and launching my app via Java WebStart. All jnilib files are within my app jar on its root. The app downloads, verifies, but I cannot get any buttons to respond. I can enter data into all my UI components. My VM arguements are "-d32" and "-XstartOnFirstThread".
The app work...
Is there a way to accomplish this?
The reason for this is I am trying to force spotlight to receive automatic updates when invisible files and folders are added/removed. This behavior I believe is a side effect of not indexing the meta-data (but I could be wrong). I came to this conclusion from this SO question.
Is the solution writing...
(gdb) bt
#0 0x302ac924 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ ()
#1 0x92077e3b in objc_exception_throw ()
#2 0x302d6ffb in -[NSObject doesNotRecognizeSelector:] ()
#3 0x3026e056 in ___forwarding___ ()
#4 0x3024a0a2 in __forwarding_prep_0___ ()
#5 0x00004ae9 in -[GameObject doesTouch:] (self=0xe893a0, _cmd=0x643ee, obj=0xe82...
Ours is an open-source Mac application localized by volunteers. These volunteers will do their work on special localization builds of the software (with unstripped nibs), then send us the changes to integrate into the original xib and strings files.
The problem is that, while there is a way to integrate string changes without blowing aw...
Hello,
I have a small little program I am working on just for fun. It's some kind of RPG Character-Generator. My class Character has some properties (NSNumber) for strength, dexterity and so on. Also I have TextFields to display these properties on the user interface.
@interface MyController : NSObject {
Character *rpgCharacter;
IBOu...
In my app, I have a NSDictionary whose keys should be instances of a subclass of NSManagedObject.
The problem, however, is that NSManagedObject does not implement the NSCopying protocol which means that no Core Data objects / instances of NSManagedObject can be used as dictionary keys even though the -[hash] method works fine for them....
The iTunes mini-player (to give just one example) supports click-through where the application isn't brought to the front when the play/pause and volume controls are used.
How is this done?
I've been looking through Apple's documentation and have a little to go on, in Cocoa Event-Handling Guide, Event Dispatch it states:
Some even...
Hi, I've tried to make a Cocoa application that connects to ftp server.
All answers do suggest using connection Kit framework but somehow Im not able to use it.
As I compile the framework and add it to my xcode project and build it. Im not able to run the application anymore. I got error in left down corner saying that app exited with st...
I am just curious, do I need to add a further [name release] elsewhere to match up with the retain here in the getter?
- (NSString *)name {
return [[name retain] autorelease];
}
gary
...
Hi,
I'm trying to open a pop-up menu from a NSToolbarItem. I tried following this example but I can't use that class method because NSToolbar and NSToolbarItem inherit from NSObject and not from NSView.
Apart from creating a custom view, what is the best way to open a pop-up menu from a NSToolbarItem?
...
In my setter I have a incoming string that I am copying to avoid any trouble should the original be modified.
- (void)setName:(NSString *)newName{
if(name != newName) {
[name release];
name = [newName copy];
}
}
My question is: as I am doing a copy where should I release it, or do I just do an autorelease? i.e.
- (v...
I am working on a non-document-based Core Data application.
I would like changes to be saved as they happen. This is what the user expects in this type of application. It is also what Apple has implemented in iPhoto or iTunes.
A brute force approach would be to set up a timer to save frequently. The method triggered by the saving would...
hi guys
i am having a problem displaying context sensitive menu on control click on a tableview when multiple rows are selected.
Its working fine when a single row is selected and then control clicked on it.
The way i am implementing this is shown below:
-(void)doSingleClick
{
NSLog(@"single clicked");
if([[NSApp currentE...
Hi guys,
How to create a menu when a user right-clicks on the dock-icon of cocoa app on Mac?
Thank you very much in advance!
Max
...