Hi Fokes,
I have a question about the NSStatusItem for cocoa in mac osx. If you look at the mac app called snippets (http://snippetapp.com/ look @ the movie there). you will see that once you clicked your statusbar icon that a perfectly aligned view / panel or maybe even windows appears just below the icon.
My question is ... How to c...
Hey guys,
How do you read text files in objective c? I just need the coding.
Thanxs.
...
Simple question - do i need to free or release structs. My reason for asking is that I'm use a NSInvocation and the SEL type is a struct. Just want to know if I need to release it. Thanks.
...
I'm trying to get a list of all users and all groups on Mac OS X 10.5+. How can I do this?
For example, the list of all users on my machine should return:
_amavisd, _appowner, _appserver, _ard, _atsserver, _calendar, _carddav, _clamav, _coreaudiod, _cvmsroot, _cvs, _cyrus, _devdocs, _dovecot, _eppc, _installer, _jabber, _lda, _locatio...
I am running Objective-C/Cocoa in Shell in Windows, not on Mac OS X.
Now, I want to append a string with an existing string in a text field when I click a button. I've created a button in a window, but I don't know how to append a string when I click that button.
How can I append a string to a text field when that button is clicked?
...
Hi ,
I need to speeed up the creation of NSDictionary from XML(of size larger thar 25 Mb),Is there any way to do this..
Thanks in advance
...
How can you make your cocoa app use a specific locale / localization thats different from what the current locale says?
My app has a number of localizations and I would like to be able to choose the localization the app uses in a config file. How can I tell Cocoa which of the localizations to use?
...
Is there any function in cocos2d or objective c to find the time between touch began and touch ended??
...
Hi, I am trying to develop a test Core Data app so i can use it in my main app. But im having problems fetching stored data.
I have 1 Entity "User" with 2 attributes: name (String) & email (String)
I can successfully populate my store file with data...
here is the code im using below.
Any help would be greatly appreciated.
NSManagedOb...
I'm trying to create a vertical progress bar in my Cocoa app, i.e, the progress bar should grow from bottom to top. I'm using NSProgressIndicator, and I can't find a way to specify vertical or horizontal. Can anybody please tell me is it possible to do it?
Thanks,
Lee
...
Hi,
Im learning how to do drag and drop to allow ordering of items in an NSOutlineView. (Its my first time using NSPasteboard).
From the slightly related examples I found online, it seems you use:
[pasteboard setData: data forType: @"myapptype"];
What should be put into the NSData when you are doing a move. The samples put an archiv...
Hi all!
I'm making a simple Todo application in Cocoa. I have added a class (and an NSObject to the XIB) MATodoController:
MATodoController.h
#import <Cocoa/Cocoa.h>
@interface MATodoController : NSObject
{
IBOutlet NSTableView *table;
}
- (IBAction)addItem:(id)sender;
- (IBAction)removeItem:(id)sender;
@end
MATodoController...
As I learn more about KVO and KVC, I have become curious -
How does NSObject provide automatic KVO when accessing setter methods?
If I create a new object with an accessor named setName,
how does an observer get notified when someon calls
[obj setName:@"Mystery"];
Thanks for any feedback
...
Hi all im having a bunch of crappy looking code here (dont get me on that). This code is posting a new entry on pastebin.com. Once you posted something on pastebin it will forward you to a new url address in php it uses header('Location:....');.
What i want to know is how to get the forwarded url from this NSMutableURLRequest..
PS: Deb...
I'm developing a Python/ObjC application and I need to call some methods in my Python classes from ObjC.
I've tried several stuffs with no success.
How can I call a Python method from Objective-C?
My Python classes are being instantiated in Interface Builder. How can I call a method from that instance?
...
Is there any way to find the parent directory of a path using NSFileManager or something?
e.g. Take this:
/path/to/something
And turn it into
/path/to/
Thanks
...
How do you add the ability to right click on a row in an NSOutlineView so you can say delete an object or some other activity. (ie Like when you right click on a folder in the Apple Mail app)
I think I am half way there, I have a subclass of NSOutlineView that allows me to catch the right click and display a context menu based on the se...
In interface builder and finder, there are windows with a status bar on the bottom of the window that has a neat greyscale effect. What is the correct/proper way to achieve this affect?
Is it a built in interface element or is it done by embedding an image?
...
Hi guys,
How would I be able to use timers? For example I want to show a certain text for 10 seconds and then I want to show a different text for the rest of the duration.
Thanks,
Kevin
...
I am building my App after adding some code but I get the Un-Recongnized Selector Sent to Instance Error stopping my App from running. Here's a Picture of the Error -
This is the Code I added (it's for the data source of an NSOutlineView)
- (id)init
{
self = [super init];
if (self != nil) {
// initialization code, ro...