Hello List
I'm been reading the documentation quit a bit but haven't found the
answer.
My problem is that I don't really understand how containers work in
Cocoa,
I know NSView, but how do I add an object to it programmatically, say
a NSImage?
Any pointer greatly appreciated!
Jacob Koldin
.
Another thing when I maximize and then resize the window a tiny bit
the objects all fall into their correct place..?
Jacob Kolding
[EMAIL PROTECTED]
On Jul 27, 2008, at 10:11 AM, Nathan Kinsinger wrote:
On Jul 26, 2008, at 9:02 AM, Jacob Ole Juul Kolding wrote:
Hello List
I've implem
Hello List
I've implemented at main window in IB and set resize attributes for
all my objects which works as desired, but I have two problems.
First, when i maximize the app the objects in the window are resize
but not placed properly.
meaning that a large empty space resides in the left s
, at 3:42 AM, Ken Thomases wrote:
On Jul 25, 2008, at 6:51 PM, Jacob Ole Juul Kolding wrote:
I been searching for quite a while and reading the source code for
DockScript by still no luck.
Can anyone tell me how to make an Cocoa app launch when a file is
drag 'n droped on it's icon?
I been searching for quite a while and reading the source code for
DockScript by still no luck.
Can anyone tell me how to make an Cocoa app launch when a file is drag
'n droped on it's icon?
Any pointer greatly appreciated!
Jacob Kolding
[EMAIL PROTECTED]
___
IIRC from my debugging sessions sizeWithAttributes already does that?
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 1:47 AM, Aki Inoue wrote:
Try using -boundingRectWithSize:options:attributes instead with
NSStringDrawingUsesDeviceMetics.
Aki
On 2008/07/24, at 14:23, Jacob Ole Juul
It's more than one pixel.
First time i noticed it was with a string of about 140 chars which gut
truncated about 10 chars.
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 11:19 AM, Manfred Schwind wrote:
he problem is that on very large strings sizeWithAttributes comes
up short [no pu
Hello List
I'm working on an app where I have a NSTableView with one column
containing strings.
I want this column to automatically resize itself within the
ScrollView to fit the width of the widest string.
In order to do this I came up with the following code:
-(void)calculateCellTextAttr