-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I started reading this book:
http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022
On chapter 2 it explains about the MVC design pattern and gives and example which I need some clarification to.
The simple example shows a view with the following fields:
hourlyRate, WorkHours, Standarthours…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I want to drag a row from my tableview and drop it into any other NSTextField in Mac OS X 10.6, and have a string of text be dropped.
Drag and drop already works within my app (between a NSTableView and an NSBrowser), but I have had no success putting any data on the pasteboard that can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to translate the a carbon method into cocoa into and I am having trouble finding any documentation about what the carbon method getPtrSize really does. From the code I am translating it seems that it returns the byte representation of an image but that doesn't really match up with the name…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I am trying to send some text in an email from my cocoa app (by using Mail.app). Initially I tried using HTML to send properly formatted text. But the mailto: URL does not support html tags (even after setting headers)
So I decided to use formatted string (left-aligning of string) This is what…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer that cocoa# 0.9.5 is also installed. However using MonoDevelop there are no cocoa# project templates by default, and I was wondering if anyone knew more about creating cocoa# apps.
If you goto the cocoa# page on the Mono site…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello, if i use NSResizableWindowMask flag in my NSWindow the "resize corner glyph" is on the top right. I can resize when pointing on the lower right corner.
I use a own created NSView with it, and set it as content view with setContentView method.
I ' dont use a bottom bar.
Any idea of what i'm…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
it may pre very simple, but cannot find it:
I have three windows in three separate NIBs in my application. One is opened when a new document is opened, the other two can be opened from the program's window menu.
The problem is: two windows (in them the one that is opened at the beginning)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an NSWindow in a Cocoa application with a fullscreen OpenGL context running above it.
The NSWindow (is loaded from the default nib). It contains some buttons, but when I try to click them they do not press down as a normal aqua button does. I think this could have something to do with the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to create a LSUIElement app that behaves like Spotlight, CoverSutra and other apps of that type. I managed to create a custom NSStatusItem, which popups up an NSWindow but the problem is that the app that currently has focus will the focus to my custom NSWindow.
I've based myself on Matt…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In my code below, CustomWindow is a subclass of NSWindow.
CustomWindow *window = [[CustomWindow alloc] init];
if (![NSBundle loadNibNamed:@"NibName" owner:window])
[window center]; // doesn't work
How do you get a pointer to control your XIB after you load it so you can do things such as centering…
>>> More