Re: NSImage glowing

2014-11-05 Thread Lee Ann Rucker
On Nov 5, 2014, at 5:53 PM, Wim Lewis wrote: > > On Nov 5, 2014, at 3:43 PM, Alex Kac wrote: >> BUT, in this case I’m just trying to get the glow on selected images, so >> when I look at the code below all I see is that we’re getting the bitmap and >> drawing it. I’m not understanding how th

Re: NSImage glowing

2014-11-05 Thread Wim Lewis
On Nov 5, 2014, at 3:43 PM, Alex Kac wrote: > BUT, in this case I’m just trying to get the glow on selected images, so when > I look at the code below all I see is that we’re getting the bitmap and > drawing it. I’m not understanding how that gets a glow. It’s applied by NSButtonCell, which k

auto layout exception: Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil

2014-11-05 Thread Chuck Soper
About a week ago, I turned on Auto Layout for xib file that contains a view. I added constraints and my subviews (some images and a label) were positioned exactly as I wanted. I thought that auto layout was great. Today, I discovered that the app crashes on iOS 7.1 using the simulator for an iPhone

Re: NSImage glowing

2014-11-05 Thread Alex Kac
Yeah, I need to look at that original message. I’ve been doing iOS stuff for years and so OS X stuff is a bit foreign to me. I only hit the OS X stuff intermittently - i.e. when my team needs some specific UI stuff which is ironic in a way. We’re all iOS developers learning OS X. So, can you he

Re: Initializing Structures

2014-11-05 Thread Kyle Sluder
On Wed, Nov 5, 2014, at 04:11 PM, Greg Parker wrote: > The C language allows a struct variable to be initialized in its > declaration using the brace syntax, but does not allow that form to be > used anywhere else. > > C99 adds this syntax ("compound literal") that works anywhere: > > NSView

Re: Initializing Structures

2014-11-05 Thread Greg Parker
> On Nov 5, 2014, at 2:03 PM, Richard Charles wrote: > > A fast and compact way to initialize a structure is to enclose the values in > a pair of braces like this. > > NSRect rect = {{0,0},{80,20}}; > NSView *view = [[NSView alloc] initWithFrame:rect]; > > However a compiler error occ

Initializing Structures

2014-11-05 Thread Richard Charles
A fast and compact way to initialize a structure is to enclose the values in a pair of braces like this. NSRect rect = {{0,0},{80,20}}; NSView *view = [[NSView alloc] initWithFrame:rect]; However a compiler error occurs if we try to initialize a struct with braces directly within an O

Re: Editing NSOutlineView Group Item

2014-11-05 Thread Luther Baker
Thanks and thanks. I'll follow up on both your suggestions. Again, many thanks for your time Quincey! Luther > On Nov 5, 2014, at 2:03 AM, Quincey Morris > wrote: > >> On Nov 4, 2014, at 14:39 , Luther Baker wrote: >> >> I've created a project on github that essentially duplicates the prob

Re: dispatch_source does not work

2014-11-05 Thread Gerriet M. Denkmann
> On 5 Nov 2014, at 14:08, Peter wrote: > > http://stackoverflow.com/questions/12343833/cocoa-monitor-a-file-for-modifications/26304208#26304208 > > has some info on this. Thanks a lot. Got it working now. Mit freundlichen Grüßen Gerriet. > > ___ Peter Hartmann > > mailto:hphartm

Re: Editing NSOutlineView Group Item

2014-11-05 Thread Quincey Morris
On Nov 4, 2014, at 14:39 , Luther Baker wrote: > > I've created a project on github that essentially duplicates the problem I'm > having. > > $ git clone https://github.com/EffectiveProgramming/LBOutlineViewDemo.git > I don’