I have a singleton in my FTP app designed to store all of the types of servers that the app can handle, such as FTP or Amazon S3. These types are plugins which are located in the app bundle. Their path is located by applicationWillFinishLoading: and sent to the addServerType: method inside the singleton to be loaded and stored in an NSMu...
I have an NSDictionary where both the keys and values are NSStrings and I'd like to create one NSString from them in the form of
Key1: Value1
Key2: Value2
What is the best method of doing this?
...
Hi,
If I terminate (or interrupt) a suspended NSTask, then it still shows up in activity monitor. It isn't running because the CPU is 0% but it's still taking up memory. Is there a work around?
...
Can I use NSTableView like I've used ListView in Windows? By that I mean JUST adding rows to the view.
I need to display a very simple two columned table and I don't want to write all this data related crap. Can I just 'add' stuff to a table view?
If not what is the simplest way to do what I'm trying to do (preferably without data sour...
I get an 'EXC_BAD_ACCESS' error when trying to access variable in a function other than the one it was set in
The variable is set in the 'awakeFromNib' function:
//Retrieve Session-ID
sessionID = [self getSessionID];
And accessed in 'searchBtnClick':
NSLog(@"Commening search (%@)",sessionID); // This causes the error
The variable ...
I have searched my entire Mac for ibplugin to find the QTKit IBPlugin, but I also came accros a plugin which adds AFAssistantPane to IB. I did a Google-search but Google has no results for it. So, does anyone know how I can use this AFAssistantPane?
Thanks
Update: I noted that this is in a private framework (that's why it is not do...
I'm building a framework, which aims to provide a new development environment for the user, but I need to use things like RegexKit and almost certainly some other established frameworks in order to do this. Any functionality exposed from such frameworks would be abstracted through classes and methods in my own framework for maintenance ...
I'm working on an iPhone project where I would like to retrieve an object from an NSMutableArray, remove the object from the array and then use it later. The code looks something like this:
NSMutableArray * array;
// fill the array
NSObject * obj = [array lastObject];
[array removeLastObject];
// do something with obj (in the same funct...
I have an NSWindow that shows up when you click either of two items (both from an NSTableView). I have a setter method that tells the window what information to display. This all works perfectly, until it comes time to display the data in the window. If I cause the window to display from one tableview, then try to have it display the ...
I couldn't find a working example of the method [NSDictionary getObjects:andKeys:]. The only example I could find, doesn't compile. I provided the errors/warnings here in case someone is searching for them.
The reason I was confused is because most methods on NSDictionary return an NSArray. However, in the documentation it states that t...
Hello,
I've created a UIDatePicker in my app and I also have support for several languages. My UIDatePicker is created in Interface Builder, and I have created a seperate localization XIB so I can customize my UIDatePicker.
Setting the "Locale" option in IB appears to do nothing. Attempting to change my DatePicker programatically wit...
While it seems to not pose a problem on the simulator, using performSelectorInBackground on the device causes memory leaks. Or at least that's what Instruments indicates. Looking at the code I don't have a single clue what the cause could be.
I tried to strip the affected code to a bare minimum but still strangely Instruments keeps show...
I have extra retain counts after calling initWithNib.
What could cause this? (There are no referencing outlets in the nib)
StepViewController *stepViewController = [[StepViewController alloc] initWithNibName:@"StepViewController" bundle:nil];
[self.navigationController pushViewController:stepViewController animated:YES];
[stepViewContro...
I have created desktop application for mac.I want to put some image and item name on the customize toolbar.I dont know how to implement that things.can you give me some advice for that.thanks in advance.
...
Hi,
I am working on an application in which i need to store all the NSObject subclass properties into plist file and then allow users to store it and restore it. We call it profile and it can restore the saved state of all the controls/views on the window in my application.
I have completed the storing/Restoring part, but the issue is ...
I'm learning how to develop my own iPhone apps but I'm having a tough time understanding certain concepts.
First, am i right to say that for every view, there must be a view controller for it? And for every view controller, must there be a delegate for it?
Also, what is the role of mainWindow.nib? Most of the tutorials that i've read d...
Hello,
I've always created my NSFetchRequests entirely in-code. Now I'm looking at the Xcode GUI for building a fetch request and storing it in the model.
I'm following an example from the Xcode Documentation. I added a Fetch Request to my model, and the predicate that has been created through the Modelling GUI is:
firstName LIKE[c]...
i have created one aplication in which i have implemented custom toolbar and i have put custom item in that tool bar but i cant able to click on that.its show its disable.how to solve this problem.
...
Hi everyone,
I have been working on a simple text editor in Cocoa/Objective-C for a practice project and I have come across an error that I would never have expected.
I have an NSString for my file's contents as well as an NSString for it's path. When I attempt to write the contents to a file, I use the following method:
[FileContents...
Where can I find good documentation on how to modernize a Cocoa master/detail interface with two tables to a "single table" interface? To illustrate what I have in mind with an example:
Current interface: at the top of the window is a master NSTableView showing a list of library cards and at the bottom are detail views for the selected ...