Bound NSTextField

2011-03-12 Thread Livio Isaia
I have some NSTextField in a window bound to a view data, e.g.: @interface ImageView : NSImageView { ... } - (void)setDegrees:(NSNumber *)value; - (NSNumber *)degrees; - (void)setImageWidth:(float)value; - (float)imageWidth; - (void)setImageHeight:(float)value; - (float)imageHeight; ... and

Custom NSView drawing

2011-10-21 Thread Livio Isaia
I'm building an IB plugin with XCode 3.2.6. I have a NSBox subclass that add a custom NSView into itself. When the custom box is displayed in the Library Object Window it draws correctly, but if I drag it into a new nib file window the drag operation is also drawn correctly, but releasing the mou

IB plug-in binding

2011-10-28 Thread Livio Isaia
I created an IB plug-in with a subclass of NSView with an exposed bind of type NSNumber, and then I bind it to a MyNSImageView through an NSObjectController (this is made directly in IB). In source code of the class myclass.h: @interface AnotherClass : NSView { NSNumber *type; } -(NSNu

Custom NSView binding

2011-11-01 Thread Livio Isaia
I repost this mail because I had problems connecting with mailing lists, sorry if this is someway annoying... I created an IB plug-in with a subclass of NSView with an exposed bind of type NSNumber, and then I bind it to a MyNSImageView through an NSObjectController (this is made directly in IB

Re: Custom NSView binding

2011-11-01 Thread Livio Isaia
Il giorno 01/nov/2011, alle ore 20.16, Quincey Morris ha scritto: > On Nov 1, 2011, at 11:54 , Livio Isaia wrote: > >> I created an IB plug-in with a subclass of NSView with an exposed bind of >> type NSNumber, and then I bind it to a MyNSImageView through an >> NSO

Scroll a collection

2013-09-21 Thread Livio Isaia
Hi everybody. I need to display an horizontal list of pictures with 2 arrow controls on left and right sides (you can see many of these on the web). Is there a predefined NSView for this? I tried with a NSCollection view inside a custom NSView of my own, but can't make the NSCollection scroll

App never reaches applicationDidFinishLaunching method

2013-10-01 Thread Livio Isaia
Hi all. I have a cocoa app for mac OSX 10.8.5 that worked fine until yesterday, but now enters into a strange loop and the main window is never shown. I mean that it reaches the awakeFromNib method of AppDelegate class and then seems to remain in NSApplicationMain -> [NSIBObjectData nibInstant

Re: App never reaches applicationDidFinishLaunching method

2013-10-02 Thread Livio Isaia
Il giorno 02/ott/2013, alle ore 05:39, Jens Alfke ha scritto: > > On Oct 1, 2013, at 5:47 PM, Livio Isaia wrote: > >> I mean that it reaches the awakeFromNib method of AppDelegate class and then >> seems to remain in >> NSApplica

Get write authorization

2013-11-17 Thread Livio Isaia
Hi all. I have a simple cocoa app (Mac OS X 10.9) that must install (or remove) a framework to system/library/Frameworks. It seems to need permission to do that, as the NSFileManager copyItemAtPath method returns error 513 (NSCocoaErrorDomain/SFileWriteNoPermissionError). So I tried to get auth

Re: Get write authorization

2013-11-17 Thread Livio Isaia
> On Sun, Nov 17, 2013, at 10:41 PM, Livio Isaia wrote: >> Hi all. >> >> I have a simple cocoa app (Mac OS X 10.9) that must install (or remove) a >> framework to system/library/Frameworks. > > Why? /System is for OS-provided components only. You should

Re: Get write authorization

2013-11-18 Thread Livio Isaia
> > Il giorno 18/nov/2013, alle ore 10:11, Kyle Sluder ha > scritto: >> >> Is there any reason your frameworks can't live inside the app bundle? >> >> --Kyle Sluder > > yes, you’re right, but the fact is that I don’t know how to put the > framework inside the app bundle with xcode 5… I go

IOBluetoothDeviceSelectorController and NSImage compositeToPoint

2014-01-21 Thread Livio Isaia
Hi all, I have IOBluetoothDeviceSelectorController *deviceSelector; when I call (self is NSObject https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com

NSCollectionView horizontal scrolling problem

2014-01-26 Thread Livio Isaia
Hi all, I have a NSCollectionView that displays some NSView objects in one column only. Now I want to programmatically increase the width of one (or all) object to show more details in it, so: [myObject setFrameSize:newSize]; [collectionView setFrameSize:newSize]; but the NSCollectionView does

SCNScene rendering question

2014-10-14 Thread Livio Isaia
Hi all, hope it’s the right place to post the question. I have a figure of a penguin in a .dae file exported from blender which has armature and bones. It all works except that the figure is shown straggled in the middle of the body, where is the origin of the root bone Is there a way to manipul

User interruption

2009-03-16 Thread Livio Isaia
I have a program searching data on disk for a long while and would like to allow the user to stop the searching in any moment. What is the best and easy way to do it? (In addition, if the user clicks an another application during the search and then again on my application, my application doesn'

Invalid strings

2009-04-07 Thread Livio Isaia
I have a strange problem with my program: the debugger marks as "invalid" (not "nil") every NSString* object I have in a method, so that I cannot see its value. Why can this happen? Can anybody help me? Thanks in advance, livio. ___ Cocoa-dev mailing

Re: Invalid strings

2009-04-07 Thread Livio Isaia
Yes, data formatters where off... thank you. It was very simple but I thought there was a real problem. thank you again, regards, livio. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Binding

2009-04-14 Thread Livio Isaia
Is it possible to connect a variable of an object I created to an NSArrayController variable? I mean: I have a NSWindowController "MyWindowController" which is also the nib file's owner type class. In the nib file I created an NSArrayController "MyArrayController" connected with a NSTableVie

NSProgressIndicator

2009-04-22 Thread Livio Isaia
I have a NSProgressIndicator that indicates the progress of a disk saving job. Initially it's hidden so: [myIndicator setMaxValue:count]; [myIndicator setMinValue:0]; [myIndicator setDoubleValue:0]; [myIndicator setHidden:NO]; [myIndicator displayIfNeeded]; Then I do the job calling: [myIndica

drawing image

2009-05-04 Thread Livio Isaia
I have a custom NSButtonCell named MyButtonCell with a drawing method: - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { cellFrame = [self imageRectForBounds:cellFrame]; [[self image] drawInRect:cellFrame fromRect:NSZeroRect operation:NSCompositeCopy frac

NSImage drawing

2009-05-04 Thread Livio Isaia
I have a custom NSButtonCell named MyButtonCell with a drawing method: - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { cellFrame = [self imageRectForBounds:cellFrame]; [[self image] drawInRect:cellFrame fromRect:NSZeroRect operation:NSCompositeCopy fractio

Custom NSImageView

2009-05-07 Thread Livio Isaia
I create MyImageView (from NSImageView) which must use MyImageCell (from NSImageCell). I put MyImageView in MyWindow with Interface Builder, creating an NSImageView and setting its class to MyImageView. In MyImageView.m I put: @implementation MyImageCell - (void)encodeWithCoder:(NSCoder *)aCo

Re: Custom NSImageView

2009-05-08 Thread Livio Isaia
Corbin Dunn ha scritto: On May 7, 2009, at 8:16 AM, Livio Isaia wrote: I create MyImageView (from NSImageView) which must use MyImageCell (from NSImageCell). I put MyImageView in MyWindow with Interface Builder, creating an NSImageView and setting its class to MyImageView. The cell is

Re: Custom NSImageView

2009-05-09 Thread Livio Isaia
Jack Carbaugh ha scritto: try clicking near the TOP of the column of the image cell whose properties you want to modify. On May 8, 2009, at 8:50 AM, Livio Isaia wrote: Corbin Dunn ha scritto: On May 7, 2009, at 8:16 AM, Livio Isaia wrote: I create MyImageView (from NSImageView) which