Re: Mutable to-many relationship not observable

2011-01-15 Thread Ken Thomases
On Jan 14, 2011, at 5:23 AM, Remco Poelstra wrote: > I add the observer as follows: > [[DigiDevicesManager sharedDigiDevicesManager] addObserver:self > forKeyPath:@"digiDevices" options:NSKeyValueObservingOptionOld context:nil]; > It's superclass is NSObject and I did not disable automatic

Re: NSSegmentedControl Label

2011-01-15 Thread jonat...@mugginsoft.com
On 14 Jan 2011, at 23:35, Kyle Sluder wrote: > On Fri, Jan 14, 2011 at 1:17 PM, Shawn Bakhtiar > wrote: >> Don't listen to the naysayers... You can do whatever you want. > > Sure, but koko asked how he could tell an NSSegmentedCell to draw its > image and its text. It's apparent that the autho

Re: Determining whether a dictionary is mutable or not

2011-01-15 Thread Tito Ciuro
Hi Ken, On Jan 15, 2011, at 7:36 AM, Ken Ferry wrote: > I'm not sure this has been made clear: It is intentional that it is > difficult to determine whether a dictionary is mutable. > > That's because you shouldn't do it. Whether a dictionary is mutable _to_you_ > is a matter of what's in

Re: Determining whether a dictionary is mutable or not

2011-01-15 Thread Ken Thomases
On Jan 15, 2011, at 5:38 AM, Tito Ciuro wrote: > On Jan 15, 2011, at 7:36 AM, Ken Ferry wrote: > >> I'm not sure this has been made clear: It is intentional that it is >> difficult to determine whether a dictionary is mutable. >> >> That's because you shouldn't do it. Whether a dictionary i

Re: Determining whether a dictionary is mutable or not

2011-01-15 Thread Tito Ciuro
On Jan 15, 2011, at 1:04 PM, Ken Thomases wrote: > On Jan 15, 2011, at 5:38 AM, Tito Ciuro wrote: > >> On Jan 15, 2011, at 7:36 AM, Ken Ferry wrote: >> >>> I'm not sure this has been made clear: It is intentional that it is >>> difficult to determine whether a dictionary is mutable. >>> >>>

Re: Mapping model

2011-01-15 Thread Matt Crocker
Hi Amy, It might be helpful if you could post an extract from your mapping method, or the whole thing if it's short. The last time I had a problem of this kind it turned out I had made a stupid error which only became obvious after I had left the problem for a week and then returned to it with

iOS: 'Random' enable/disable

2011-01-15 Thread Phillip Mills
This may be obvious to people, but it took me a while to figure out, so I thought I'd post it in case it saves someone a bit of time. My application is structured with a split view controller as the main interface element. The root view has a primary controller, and a second one which is pushe

Re: Determining whether a dictionary is mutable or not

2011-01-15 Thread Jean-Daniel Dupas
Le 15 janv. 2011 à 13:18, Tito Ciuro a écrit : > On Jan 15, 2011, at 1:04 PM, Ken Thomases wrote: > >> On Jan 15, 2011, at 5:38 AM, Tito Ciuro wrote: >> >>> On Jan 15, 2011, at 7:36 AM, Ken Ferry wrote: >>> I'm not sure this has been made clear: It is intentional that it is difficu

NSNotFound

2011-01-15 Thread Richard Somers
NSNotFound is formally defined as NSIntegerMax. But the framework methods returning NSNotFound are typically typed NSUInteger. Is there a technical reason why NSNotFound is not defined as NSUIntegerMax? --Richard Somers ___ Cocoa-dev mailing lis

Re: NSNotFound

2011-01-15 Thread Thomas Davie
On 15 Jan 2011, at 18:43, Richard Somers wrote: > NSNotFound is formally defined as NSIntegerMax. But the framework methods > returning NSNotFound are typically typed NSUInteger. > > Is there a technical reason why NSNotFound is not defined as NSUIntegerMax? 1) Because it's usable for NSIntege

Re: QuickLook returning small image

2011-01-15 Thread Julien Jalon
When requesting a thumbnail, it's up to the underlying plug-in to honor the requested size. If icon == NO, Quick Look will return the plug-in's image result as is. If icon == YES, Quick Look will force the requested size (because it adds icon decoration which should match the requested size) - so

Re: Converting NSImage to cmtk yeilds green images

2011-01-15 Thread Ken Ferry
Hi Ken, You may want to ask on the colorsync-users mailing list as well as give sample before/after images. My quick test produced some degradation, but not more than I would expect. I'm not sure if you're seeing something else or if you expect the RGB->CMYK->RGB (when it goes back to the screen

sending data to a view not yet displayed

2011-01-15 Thread Shane
I am creating views which are being prepared for view swapping in the init method of my apps main controller. So the view controllers exists and each view controller's init method calls initWithNibName:. My problem is that, if I swap views by selecting a view so that it is displayed, when I load m

Re: Composing an NSImage to print

2011-01-15 Thread Ken Ferry
Hi Olivier, Unless I misread this, this section cannot be doing anything helpful: NSImageView *tempIm = [[NSImageView alloc] initWithFrame:frontRect]; > [tempIm setImage:[cusThumbFront image]]; > > NSData* theData = [tempIm dataWithPDFInsideRect:[tempIm bounds]]; > NSPDFImageRep* pdfRep = [NSPDFI

Re: sending data to a view not yet displayed

2011-01-15 Thread Graham Cox
On 16/01/2011, at 8:49 AM, Shane wrote: > So I guess my question is, how do I make sure my view is able to > receive the data I want sent to it before it is ever displayed. I hope > that makes sense. Put the initialization in the -awakeFromNib method of that view. --Graham __

Re: sending data to a view not yet displayed

2011-01-15 Thread Dave Carrigan
On Jan 15, 2011, at 1:49 PM, Shane wrote: > I am creating views which are being prepared for view swapping in the > init method of my apps main controller. So the view controllers exists > and each view controller's init method calls initWithNibName:. > > My problem is that, if I swap views by s

Re: sending data to a view not yet displayed

2011-01-15 Thread Shane
>> So I guess my question is, how do I make sure my view is able to >> receive the data I want sent to it before it is ever displayed. I hope >> that makes sense. > > > Put the initialization in the -awakeFromNib method of that view. > I moved the view swapping setup from the init to the awakeFro

Re: sending data to a view not yet displayed

2011-01-15 Thread Shane
> If this is iOS, -initWithNibName doesn't actually load the nib immediately, > so the outlets won't be connected until such time as the nib is loaded, which > doesn't happen until something tries to access the view. Instead, you should > initialize your outlets' data in the -viewDidLoad method.

Core Data Model One-To-Many question/help

2011-01-15 Thread Philip Vallone
Hi List, I am trying to learn core data and have a very basic question on how to set up a one-to-many relationship. Can someone look at the screen shots (links below) and provide some guidance. Do I have this set up correctly? CDSites CDAnnotations My Entity "CDSites" will have Many "CDAnnot

Re: sending data to a view not yet displayed

2011-01-15 Thread Shane
Well, not sure if this is correct, but I got it to work by calling loadView on the view's controller just after it was created. // ... dvc = [[DataDetailsViewController alloc] initWithController:self]; [dvc setManagedObjectContext:[self managedObjectContext]]; [deta

Re: QuickLook returning small image

2011-01-15 Thread Andy Lee
Thanks, Julien. This is helpful. On Jan 15, 2011, at 2:28 PM, Julien Jalon wrote: > When requesting a thumbnail, it's up to the underlying plug-in to honor the > requested size. > > If icon == NO, Quick Look will return the plug-in's image result as is. > > If icon == YES, Quick Look will forc

Image Type for Button

2011-01-15 Thread John Joyce
Hello all, Cannot seem to find this in the HIG. What type of image would give the inverted look of the built in media types (NSQuicklookTemplate for example) when in a Textured Square Button or Segmented control? The images appear black with a clear alpha in Interface Builder. I've tried png,

Re: Image Type for Button

2011-01-15 Thread Ken Thomases
On Jan 15, 2011, at 8:13 PM, John Joyce wrote: > Cannot seem to find this in the HIG. > What type of image would give the inverted look of the built in media types > (NSQuicklookTemplate for example) when in a Textured Square Button or > Segmented control? > > The images appear black with a cle

Re: Image Type for Button

2011-01-15 Thread Ken Ferry
On Sat, Jan 15, 2011 at 7:15 PM, Ken Thomases wrote: > On Jan 15, 2011, at 8:13 PM, John Joyce wrote: > > > Cannot seem to find this in the HIG. > > What type of image would give the inverted look of the built in media > types (NSQuicklookTemplate for example) when in a Textured Square Button or

Re: Image Type for Button

2011-01-15 Thread John Joyce
On Jan 15, 2011, at 9:41 PM, Ken Ferry wrote: > > > On Sat, Jan 15, 2011 at 7:15 PM, Ken Thomases wrote: > On Jan 15, 2011, at 8:13 PM, John Joyce wrote: > > > Cannot seem to find this in the HIG. > > What type of image would give the inverted look of the built in media types > > (NSQuickloo

Re: Image Type for Button

2011-01-15 Thread Ken Ferry
On Sat, Jan 15, 2011 at 7:44 PM, John Joyce < dangerwillrobinsondan...@gmail.com> wrote: > > Thanks so much!! > No problem. Arguably, that release note stuff is darn hard to look through. Search > results generally don't seem to find it. I'll file a bug on the HIG docs or on IB docs to get that

How to change the product name with command line builds?

2011-01-15 Thread Gabriel Zachmann
I've got an Xcode project that compiles and works fine. The short question now is: what is the proper way to change the bundle's name from the command line? (and, at the same time, its executable name) A little bit of background information might be in order. I am writing a screensaver. Now some

iPhoto "external editor"

2011-01-15 Thread Greg Kennedy
I'm working on my first Cocoa / Objective-C app: an "external editor" for iPhoto. Actually, it isn't an editor at all - its sole purpose is to replace the Modified image with a user-selected image from disk. In this way a user can select an Original in iPhoto, double-click to edit, then find t

Zoom sometimes messes up resize increments

2011-01-15 Thread Jacob M. H. Smith
Hello. I have a window in my application for which I have set resize increments. When I click the zoom button in the window's title bar, sometimes it obeys the resize increments, i.e. the window fills the screen as much as possible without violating the resize increments. But sometimes the window

Get iphoto scripting bridge handle without starting iphoto?

2011-01-15 Thread Gabriel Zachmann
My question is: can I get a scripting bridge handle on iPhoto without making iPhoto launch? And can I retrieve a list of iPhoto albums and a list of images in an album without making iPhoto launch? Right now, I am using iPhoto_ = [[SBApplication applicationWithBundleIdentifier:@"com.apple.iP

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-15 Thread Ken Ferry
Hi Gabriel, No, you cannot. Scripting Bridge works by sending messages back and forth with a target process. If there is no process running, there isn't anything to communicate with. A scripting dictionary does not (and cannot) include information about how to access the on disk data iPhoto use

Re: How to change the product name with command line builds?

2011-01-15 Thread Ken Thomases
On Jan 14, 2011, at 7:55 AM, Gabriel Zachmann wrote: > I've got an Xcode project that compiles and works fine. > > The short question now is: what is the proper way to change the bundle's name > from the command line? Assuming your project is set up like normal (e.g. with Info.plist values base