Re: Very basic table binding blind spot

2012-08-03 Thread Kyle Sluder
On Aug 2, 2012, at 10:16 PM, Erik Stainsby wrote: > > > I do so wish there was a Complete Idiot's Guide to Cocoa Table Bindings … The > very flexibility which I know must be their great virtue tends to obscure the > clear path from my sight more often than not. Forest, trees, trees, forest …

Re: Very basic table binding blind spot

2012-08-03 Thread Kyle Sluder
On Aug 3, 2012, at 12:11 AM, Kyle Sluder wrote: > > You should consider using a view-based table view if you're targeting 10.7 or > later. They're so much nicer! Hmm, now that Quincy's pointed it out, it looks like you are indeed using a view-based table view. That will make your life easier

Re: Very basic table binding blind spot

2012-08-03 Thread Kyle Sluder
On Aug 3, 2012, at 12:11 AM, Kyle Sluder wrote: > > You should consider using a view-based table view if you're targeting 10.7 or > later. They're so much nicer! Hmm, now that Quincy's pointed it out, it looks like you are indeed using a view-based table view. That will make your life easier

Re: Very basic table binding blind spot

2012-08-03 Thread Quincey Morris
On Aug 3, 2012, at 00:16 , Kyle Sluder wrote: > Hmm, now that Quincy's pointed it out, it looks like you are indeed using a > view-based table view. No bonus points to me though. Having cleverly focused on the forest instead of the trees, I didn't register the fact that using the data source w

Style: NSArrayController communicating with NSViewController

2012-08-03 Thread Arved von Brasch
Hi List, I've been reworking my application and I've found a solution I'm not particularly happy with, and was hoping to get some advice from others. I have several views that are essentially views onto different tables. Each row in the table represents real items in the file system (because t

Re: Style: NSArrayController communicating with NSViewController

2012-08-03 Thread Graham Cox
On 03/08/2012, at 5:56 PM, Arved von Brasch wrote: > I've settled on having the array controller publish values and having the > view controller notice by key-value observing. Sounds reasonable. Is there a problem with this approach? --Graham __

Re: Very basic table binding blind spot

2012-08-03 Thread Michael Swan
Erik, I've only made a custom subclass of NSArrayController once and that was a long time a go to do some custom thing that I don't remember now. Normally I add an array to the appropriate view controller that has the table data in it and then bind the NSArrayController's content to that array.

Re: Style: NSArrayController communicating with NSViewController

2012-08-03 Thread Arved von Brasch
On 2012-08-03, at 18:04 , Graham Cox wrote: > On 03/08/2012, at 5:56 PM, Arved von Brasch wrote: >> I've settled on having the array controller publish values and having the >> view controller notice by key-value observing. > > > Sounds reasonable. Is there a problem with this approach? No,

+underPageBackgroundColor

2012-08-03 Thread Graham Cox
Hi all, ML introduces +[NSColor underPageBackgroundColor]; I had thought this was to be the grey linen texture as used in Mail, etc but instead I'm getting a sort of flat pale cream colour. Is that right? --Graham ___ Cocoa-dev mailing list (C

Re: Very basic table binding blind spot

2012-08-03 Thread Erik Stainsby
Thank you gentlemen, both, for taking the time to educate me. I have lots to rethink in my "design", such as it was. On 2012-08-03, at 12:27 AM, Quincey Morris wrote: > On Aug 3, 2012, at 00:16 , Kyle Sluder wrote: > >> Hmm, now that Quincy's pointed it out, it looks like you are indeed usi

10.8, Prefs Pane and Frameworks woes

2012-08-03 Thread Totte Alm
Hello, About seven years ago someone had figured out how to load and call frameworks from inside a System Prefs Pane plugin, I've used that technique for a solution for a client ever since. They never jumped on 10.7 for numerous reasons, but now we need to prepare to move to 10.8, late I know b

Open menu crashes Cocoa app targeting SL

2012-08-03 Thread McLaughlin, Michael P.
My app, created in Lion but targeting SL seems to work fine except that, when actually run in Snow Leopard, it crashes whenever Open or Open Recent is selected. The crash log gives 0 com.apple.AppKit 0x7fff885e49de -[NSImage _allocAuxiliaryStorage] + 158 1 com.apple.AppKi

rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
I have a subclass of UIViewController which displays a small view in the center of the display. shouldAutorotateToInterfaceOrientation: returns YES. The problem: when I rotate the device, the centered view rotates as it should. But it also changes its size to full-screen. The (bad) workaround:

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 8:34 AM, Gerriet M. Denkmann wrote: > I have a subclass of UIViewController which displays a small view in the > center of the display. > shouldAutorotateToInterfaceOrientation: returns YES. > > The problem: > when I rotate the device, the centered view rotates as it should.

Re: rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
On 3 Aug 2012, at 22:50, David Duncan wrote: > On Aug 3, 2012, at 8:34 AM, Gerriet M. Denkmann wrote: > >> I have a subclass of UIViewController which displays a small view in the >> center of the display. >> shouldAutorotateToInterfaceOrientation: returns YES. >> >> The problem: >> when I ro

loading UIView in correct orientation

2012-08-03 Thread Gerriet M. Denkmann
I have a subclass of UIViewController which displays a small view in the center of the display. shouldAutorotateToInterfaceOrientation: returns YES. This view is only shown on demand. The problem: If the device is in Portrait-Up position when the ViewController is created then everything is fi

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 9:16 AM, Gerriet M. Denkmann wrote: > The code in basicView (an UIView) is: > > - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event > { > if ( self.sliderView == nil ) // load nib > { > NSBundle *mainBundle = [ NSBundle mainBundle

Re: loading UIView in correct orientation

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 9:22 AM, Gerriet M. Denkmann wrote: > > I have a subclass of UIViewController which displays a small view in the > center of the display. > shouldAutorotateToInterfaceOrientation: returns YES. > This view is only shown on demand. > > > The problem: > If the device is in Por

Re: rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
On 3 Aug 2012, at 23:59, David Duncan wrote: > On Aug 3, 2012, at 9:16 AM, Gerriet M. Denkmann wrote: > >> The code in basicView (an UIView) is: >> >> - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event >> { >> if ( self.sliderView == nil ) // load nib >> { >>

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 10:39 AM, Gerriet M. Denkmann wrote: >> 1) adopt view controller containment and do this addition in the view >> controller that owns basicView (which needs to be a subclass to do this >> properly) of > > If I understand this correctly, I have to do: > create a view controll

NSTimer fireDate on invalidated timer not working according to docs

2012-08-03 Thread Trygve Inda
NSTime docs say: -- The date at which the receiver will fire. If the timer is no longer valid, this method returns the last date at which the timer fired. -- For an invalidated timer I am seeing a fireDate of: 2001-01-01 00:00:00 But I know it fired at 2012-08-03 19:39:12 Is this a known bug?

Re: +underPageBackgroundColor

2012-08-03 Thread Marcus Karlsson
On Aug 3, 2012, at 3:00 PM, Graham Cox wrote: > Hi all, > > ML introduces +[NSColor underPageBackgroundColor]; > > I had thought this was to be the grey linen texture as used in Mail, etc but > instead I'm getting a sort of flat pale cream colour. Is that right? > > > --Graham Hello. I do

Invalidate non-repeating NSTimer after fired?

2012-08-03 Thread Trygve Inda
NSTimer* myTimer = [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(wantsUpdate:) userInfo:nil repeats:NO] Sometime after it fires (and occasionally before), I call if ( myTimer ) { [myTimer invalidate]; [myTimer release]; myTimer = nil; } Should I really be do

Re: +underPageBackgroundColor

2012-08-03 Thread Gary L. Wade
That "color" is actually a pattern. What are you doing that gives you the unexpected result? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Aug 3, 2012, at 1:14 PM, Marcus Karlsson wrote: > > On Aug 3, 2012, at 3:00 PM, Graham Cox wrote: > >> Hi all, >> >> ML introduces +

Re: Invalidate non-repeating NSTimer after fired?

2012-08-03 Thread Charlie Dickman
You must use the 2nd way. If you don't you could get a memory exception if the timer has fired and, therefore, been invalidated. On Aug 3, 2012, at 4:19 PM, Trygve Inda wrote: > NSTimer* myTimer = [NSTimer scheduledTimerWithTimeInterval:60 target:self > selector:@selector(wantsUpdate:) userInfo:

Re: +underPageBackgroundColor

2012-08-03 Thread Sean McBride
On Fri, 3 Aug 2012 23:00:26 +1000, Graham Cox said: >ML introduces +[NSColor underPageBackgroundColor]; > >I had thought this was to be the grey linen texture as used in Mail, etc >but instead I'm getting a sort of flat pale cream colour. Is that right? I think it's supposed to be the colour rela

Re: Invalidate non-repeating NSTimer after fired?

2012-08-03 Thread Lee Ann Rucker
Not if you've retained the timer - and if you haven't, then you shouldn't release it. Conversely if you *have*, you should release and nil it when it fires. On Aug 3, 2012, at 2:10 PM, Charlie Dickman wrote: > You must use the 2nd way. If you don't you could get a memory exception if > the tim

Re: Invalidate non-repeating NSTimer after fired?

2012-08-03 Thread Trygve Inda
> You must use the 2nd way. If you don't you could get a memory exception if the > timer has fired and, therefore, been invalidated. > > On Aug 3, 2012, at 4:19 PM, Trygve Inda wrote: My code looks like this: -(void)awakeFromNib { [self setUpdateTimer:[NSTimer scheduledTimerWithTimeInterval:

Re: +underPageBackgroundColor

2012-08-03 Thread Graham Cox
On 04/08/2012, at 6:55 AM, "Gary L. Wade" wrote: > That "color" is actually a pattern. What are you doing that gives you the > unexpected result? I'm expecting it to be a pattern, with a fairly obvious linen texture. I get the colour and i use it to -setBackgroundColor: on my scrollview (whic

Re: Invalidate non-repeating NSTimer after fired?

2012-08-03 Thread Quincey Morris
On Aug 3, 2012, at 14:37 , Trygve Inda wrote: > I think B is the concern since if I > change the code to: > > if ([updateTimer isValid]) > [updateTimer invalidate]; > > Then it will be invalidated in case B (because the code has not fallen back > to the run loop to invalidate it on its own). No

Closing connections nicely when DO server crashes

2012-08-03 Thread Gideon King
Hi, I am trying to implement LinkBack in my application, and it creates a Distributed Objects connection to send the info to and fro. It all works fine, but if the server application crashes, I get a crash in my application with this backtrace: * thread #1: tid = 0x2203, 0x7fff8aed5b3e Core