In IB one can instantiate controllers, build up references to UI elements, and define action targets. It is also possible to do that programmatically. I wonder what (most) seasoned Cocoa developers prefer?
In many other environments, I would not bother too long with interface builders (lower case), but the Apple tools are clearly a clas...
Can anyone point me to a really simple hello world type of application that introduces ScriptingBridge? Something that takes you step by step to creating a 1 class - 1 method project that can be instantiated from ruby/python/applescript, etc.
I'm having a hard time wrapping my head around what is actually required to create a scriptable...
For a subclass, is there way I can remove/stop methods from super class implementation?
(ie. nsstring has a method length. i want to stop "mystring" class from attaining the length method).
...
In the Core Data Programming Guide under "Transformable Attributes" here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html
It is stated "You can now use the attribute as you would any other standard attribute, as illustrated in the following code fragment:"
The follow line of ...
I am trying to subclass NSSlider to create a control called a jog dial. Basically what I need is a slider which always starts at the middle and when it is moved to the left or right it will send notifications every so often (determined by an attribute one can set) informing its container of its current value, then when you let you go of...
Hi I am getting memory leak in Instruments for the following line of code .
NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love",
@"Hate",@"Happy",@"Sad",
@"Desire",@"Anger",@"Hope",@"Fear",@"Silly",nil];
I am using the below code:
arrayList is also released in dealloc block.
NSArray *itemsList=[[NSArray alloc] init...
Hi,
I am working on an application in which I need to migrate the whole code of it from carbon to cocoa.I have experience in programming of C,C++,python and Java during my college time and internship but have never touched objective C or have done any programming for Mac(Carbon and Cocoa) before this.
So Can you please suggest me some ...
Since the last question similar to this one is from 2008, I thought I'd ask it anyway to see what's new since then.
I'm looking for books or other resources (though I prefer epubs for reading them on the go) for learning how to use DTrace, preferably but not necessarily for Cocoa, ruby or node.js development.
...
I'm trying to get the integer value of an NSNumber initialized with a float and I was expecting that intValue handle the conversion (as the docs say).
#import <Foundation/Foundation.h>
#import "Fraction.h"
#import "Complex.h"
#import "ComplexMathOps.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutore...
Hi guys,
I hope you can help with that.
OK i have created new group/folder under Classes - Libs: Classes/Libs and have created class there Msg.h
now I am trying to import it into my RootViewController
#import "Libs/Msg.h"
but I am getting an error:
Libs/Msg.h = no such file or directory
what should i Do ?
cheers,
/marcin
...
My app uses Core Data with a simple model with two entities, 'Category' and 'Item', both with a 'name' attribute and a relationship one-to many (a category has many items).
In IB I have a tableview and a Array Controller for the items. Also a textfield and a comboBox (for user type items name and select a category) and "add" button.
Wh...
I have implemented thread-targeted notifications as per the Apple document "Delivering Notifications To Particular Threads" (http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Notifications/Articles/Threading.html#//apple_ref/doc/uid/20001289-CEGJFDFG) in my app, and it works great when run in the Simulator (iPhone 4 ...
Hi!
In my small Core Data application I have some NSTableView views binded with NSArrayController controllers in Entity mode.
When I try to import some big amount of data to my table in background thread, after some successfully added imports (from dozens to hundreds items) I get crash with log:
Serious application error. Exception w...
Is it possible to view the exact code generated by @synthesize?
...
Hi guys
Can anyone recommend me a good logger for cocoa, something that should be in par with log4j.
I've been developing this app in cocoa & as the source code is growing I find my self craving for a logger. I've googled a bit, have found a few options but I am looking to hear from you guys & your experiences with these loggers.
I l...
Is there any lint tool for Objective-c?
...
In interface builder, I have an NSWindow with an NSView subview, and a custom NSOpenGLView as a subview of the NSView. I have my depth buffer set as 24 bit and a double buffer enabled. Everything else is set to the default value. I've used my NSOpenGLView elsewhere so I know the OpenGL parts work correctly. If I put an NSLog call in ...
Hi,
I've got a custom image browser view with IKImageBrowserCell subclass where I've added a little sign graphic that I would like to animate on some occasions.
It's kind of like the "i" sign on Panic's Coda Sites view (which I'm guessing is an ImageBrowserView customized.. right?). On Coda's sites view, if you hover on a project the l...
Is there a better way in Objective-C to do:
if ([elementName isEqual:@"one"]){
// do some stuff
}
else if ([elementName isEqual:@"two"]]{
// do more stuff
}
else if ([elementName isEqual:@"three"]]{
// do more stuff
}
ideally, I would like something like:
//BAD CODE, NOT REAL!!!
switchString(elementName){
@"one":
...
Hello everyone
I hope to add a row to a table in a sqlite database.
[NSString stringWithFormat:@"INSERT INTO myTable (rowid,myName ) VALUES (NULL, '%@');" , [aInfo myString]];
rowid is auto increment.
After insert the row, I hope to get the rowid that generate by sqlite automatically.
Is it possible?
welcome any comment
Thanks
...