Hi again,
in my app I want to have a light table to sort photos. Basically it's just a huge view with lots of photos in it and you can drag the photos around. Photos can overlap, they don't fall into a grid like in iPhoto.
So every photo needs to respond to mouse events. Do I make every photo into its own view? Or are views too expens...
I need to write a Mac Objective-C/Cocoa app that connects to a remote MS SQL Server. How to do it?
Also, how to run SELECT/UPDATE/INSERT/DELETE in this connection?
...
This code snippet isn't working, I'm getting an "Authentication Failed." response from the server. Any ideas?
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]
initWithURL:
[NSURL URLWithString:@"http://www.tumblr.com/api/write"]];
[request setHTT...
i want to load html file from Resources in WebView.
in Resources i have:
test.html
testfolder->test.html
this code works perfectly:
[[webview1 mainFrame] loadRequest:
[NSURLRequest requestWithURL:
[NSURL fileURLWithPath:
[[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"]]]];
and this one - crash the app (SIGABRT)...
In my Core Data model I have two entities: List and Patient. List has an attribute called 'name'.
A List can have any number of Patients and each Patient can belong to any number of different lists. I have therefore set a relationship on List called 'patients' that has an inverse to-many relationship to Patient AND a relationship on Pat...
I was taking a look at the Xcode bundle and noticed that some of the icons visible on the UI don't exist there, eg, the Run button with the hammer on top.
Where would they be? Where else can you store resources in a Cocoa application?
...
I have a small gui app that consists selectable groups, each groups has a disclosure button to display its sub-group, an image and a text field. When you are editting a text field and select another group or another text field I want to end editting on the old text field. Also, I only want the background of a text field to be display w...
I made a xfire client for mac (called BlackFire -> http://www.macxfire.com)
and it keeps using more and more ram over time, even when not doing that much.
I have run the app with instruments::leaks and it doesn't show any leaks at all (when it did i fixed them quickly).
Somehow it still keeps using more ram, like it is supposed to or so...
I have a CALayer that I want to change the custom animation for it appearing on screen. I have created a delegate so that I can catch the method:
- (id < CAAction >)actionForLayer:(CALayer *)layer forKey:(NSString *)key
And I check for the key to be equal to kCAOnOrderIn, however, the layer hasn't been told what it's bounds will be ye...
Hi there,
I'm a bit confused with key value coding and to-many relationships. I've read that when having such relationship I should use [object mutableArrayValueForKey:@"key"]; to retrieve
the mutable array that holds the objects in that ordered relationship.
What I don't understand is what's the difference between mutableArrayValueFor...
I have a custom NSActionCell used to render some parts of some of the rows in my NSOutlineView. I can receive and respond to clicks on the NSActionCell, but the selection also changes when that cell is clicked. I'd like to prevent the selection from changing if one of my custom NSActionCells are clicked.
Is there an easy way to do this?...
Is there a framework out there that will allow me to create simple bar and line graphs?
...
Hi everyone! Sorry to be a nuisance, but I have yet ANOTHER question. How would I do something like DeskLock from macrabbit's Deskshade app? I've made the little window and that's as far as I've come. I know how to "lock" the screen in 10.6 with PresentationOptions, but I don't want to risk it because last time it wouldn't let me back in...
Hello fellows!
I'm very new to a cocoa programming and I can't find the way to do the following:
Start a particular application by name
Do some work
Later bring that application I've started to be the front process
From what I've found in Carbon API it looks like the calls i should use are launchApplication() and setFrontProcess().
...
Hi all,
I am able to work with NSTokenField, it is easy to use.. but I want your suggestions on how can I customize it just like it is in "To/ CC" fields in mac mail ie. when no. of tokens in a token field increases height of "To" field gets increased to a certain limit then a vertical scroller starts appearing!
By default when we use...
Two quick questions if I may, is this how I should go about taking two NSNumber objects, performing a calculation and ending up with a result that is also an NSNumber?
NSNumber *flux = [[NSNumber alloc] initWithDouble:100.0];
NSNumber *mass = [[NSNumber alloc] initWithDouble:3];
double intermediate = [flux doubleValue] / [mass doubleVa...
Hi!
I am loading a page into a WebView. The page has this little-test Javascript:
<script type="text/javascript">
function test(parametr)
{
$('#testspan').html(parametr);
}
var bdu = (function(){
return {
secondtest: function(parametr) {
$('#testspan').html(parametr);
}
}
})();
</script>
The problem is that I can't cal...
Is it safe to assume that the destination URL passed to an outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems: method (as specified by the NSOutlineViewDataSource protocol) is always a file URL?
In the implementation of such a method I'm making use of NSDictionary's writeToURL:atomically: to write out a ".webloc" prope...
Hi,
I have a custom window (matt gemells Transparent Window class) and I need to change the window's alpha value to achieve a fade in/out effect and perform a "makeKeyAndOrderFront:".
However this does not work.
What I did:
I imported the header:
#import "TransparentWindow.h"
Then tried:
[TransparentWindow setAlphaValue:0.5];
[...
I have an NSColorWell, which is bound to a property that contains an NSString instance, which get's transformed into an NSColor through my ColorTransformer (NSValueTransformer). It essentially transforms something like #FF0000 into an NSColor. This works as expected, but the ColorWell no longer opens it's Pane when clicked. When I disabl...