Re: Tracking visibleRect changes using Autolayout

2013-02-17 Thread iain
On Mon, Feb 18, 2013 at 6:07 PM, Kyle Sluder wrote: > On Sun, Feb 17, 2013, at 05:12 PM, iain wrote: > > > > Does anyone have any hints of something I may have missed, or something > > I'm > > going about the wrong way? > > Unless there's something you haven't told us, you shouldn't need to keep

Re: Tracking visibleRect changes using Autolayout

2013-02-17 Thread Kyle Sluder
On Sun, Feb 17, 2013, at 05:12 PM, iain wrote: > > Does anyone have any hints of something I may have missed, or something > I'm > going about the wrong way? Unless there's something you haven't told us, you shouldn't need to keep track of your visible rect at all. It sounds like you're trying t

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-02-17 Thread Jerry Krinock
OK, so while the drawer was in the broken state again, with the delegate wired in the nib, I poked it with the debugger again and found that, in order to fix it, I must first set the drawer's delegate to nil before setting it back to the window controller. That is, this did not work: (lldb) ex

IOS iPad PopOver Nav bar color

2013-02-17 Thread Trygve Inda
I have a popover view and would like a nav-like title bar on it in a dark color that matches the frame gradient of the popover fram. I can make the nav bar grey or black, but can't seem to get it to apply the gradient that the frame has. Ical seems to be able to do this when you tap "Calendars" in

Tracking visibleRect changes using Autolayout

2013-02-17 Thread iain
Hello, I have a very wide view which is placed inside an NSScrollView using Autolayouts. The view's horizontal intrinsic width is the width of the view, and the intrinsic height is NSViewNoIntrinsicMetric because I want it to be whatever height the parent gives it. To do this, I've set the constra

Re: iOS 6.0 SDK UIApplicationInvalidInterfaceOrientation

2013-02-17 Thread Matt Neuburg
On Mon, 04 Feb 2013 00:36:28 -0500, "Mazzaroth M." said: >I am getting this error in a universal iOS 6.0 sdk app: >[snip] >2)_playerVC is a MPMoviePlayerViewController subclass My advice: Use MPMoviePlayerController instead, make your own view controller, don't worry, be happy. More work, but yo

Re: Tracking object references

2013-02-17 Thread Ken Thomases
On Feb 17, 2013, at 11:50 AM, Matt Neuburg wrote: > On Sat, 12 Jan 2013 11:13:13 +, Mike Abdullah > said: >> >> The allocations instrument can show you all presently allocated objects. >> Find the object(s) you're interested in from that list and you can view its >> history of being retai

Re: Tracking object references

2013-02-17 Thread Matt Neuburg
On Sat, 12 Jan 2013 11:13:13 +, Mike Abdullah said: > >The allocations instrument can show you all presently allocated objects. Find >the object(s) you're interested in from that list and you can view its history >of being retained and (auto)released, to figure out what is still holding ont

Re: Core Foundation Objects and Properties when using ARC

2013-02-17 Thread Matt Neuburg
On Fri, 11 Jan 2013 10:03:33 -0800, John McCall said: >On Jan 10, 2013, at 4:35 PM, Dave wrote: >> I've looked all over and just can't seem to find the recommended approach to >> handling CF objects in properties when using ARC. >> >> I have an init method that needs to create a CF object and s

Re: what does the return value for textFieldShouldReturn actually do???

2013-02-17 Thread Matt Neuburg
On Tue, 01 Jan 2013 20:15:00 +0800, Roland King said: >I have a UITextField with a delegate. I implement textFieldShouldReturn: and >that returns a BOOL value. The docs say this about the return value > >YES if the text field should implement its default behavior for the return >button; otherwis

Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField

2013-02-17 Thread Keary Suska
On Feb 17, 2013, at 8:24 AM, John Joyce wrote: > In the Bindings Inspector, click on Selected Index . > For Bind to, select Array Controller from the Bind to PopUpButton menu. > For the field Controler Key , enter selectionIndex. > This will update the Array Controller's property selectionIndex to

Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField

2013-02-17 Thread John Joyce
On Feb 16, 2013, at 1:21 AM, Keary Suska wrote: > On Feb 15, 2013, at 5:41 AM, Eric Gorr wrote: > >> I have a NSArrayController filled with an array of NSDictionaries. >> >> [[self controller] addObject:@{ @"name" : @"itemA", @"part" : @"partA" }]; >> [[self controller] addObject:@{ @"name" :

Re: NSTableView and NSArrayController with "Handles Content As Compound Value" - won't select new items in Table View

2013-02-17 Thread Keary Suska
On Feb 12, 2013, at 11:26 PM, Alex Rainchik wrote: > Hello, > > I have a typical NSTableView and NSArrayController confguration, with Array > Controller's Content Array bound to NSMutableArray called "usersArray" > > What I'm trying to do is to have an KVO observer setup, so every time > usersA

Re: cocoa bindings performance

2013-02-17 Thread Mike Abdullah
Sent from my iPad On 15 Feb 2013, at 19:42, Maximilian Marcoll wrote: > > Hi everyone! > > I have a problem with bindings, or so it seems. > > In my application, I need to programmatically create lots of small views > embedded in a big view. > Think of them as draggable items on a plane.

Re: Problem with NSPersistentStore

2013-02-17 Thread Mike Abdullah
Thinking about it more, your method doesn't really make sense. In order to use a context it must be associated with a persistent store coordinator, in order to know its model. So it doesn't make sense to create the coordinator lazily. Instead, make *adding the store* be the lazy bit Sent from m

Re: cocoa bindings performance

2013-02-17 Thread Tom Davie
Sorry I can't be of more direct help, but… Cocoa bindings are unfortunately one of many tools that apple produces with the thought "we can make this small task I do repeatedly much easier" in their head, that typically doesn't cover the general case. They're enormously productive if all you're

Re: Multiple methods named...

2013-02-17 Thread Michael Bauer
I must misunderstand what you are trying to accomplish. From the description of Strict Selector Matching: "Warn if multiple methods with differing argument and/or return types are found for a given selector when attempting to send a message using this selector to a receiver of type "id" or "Cla

cocoa bindings performance

2013-02-17 Thread Maximilian Marcoll
Hi everyone! I have a problem with bindings, or so it seems. In my application, I need to programmatically create lots of small views embedded in a big view. Think of them as draggable items on a plane. Thus far I'm controling the views using bindings. Four bindings per view to be precise.

Re: iOS Document Interaction Technology

2013-02-17 Thread Damian Carrillo
Koko, You may be missing UTExportedTypeDeclarations. https://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html explains the process. If you're using the Info tab in Xcode to declare your Document Typ

NSTableView and NSArrayController with "Handles Content As Compound Value" - won't select new items in Table View

2013-02-17 Thread Alex Rainchik
Hello, I have a typical NSTableView and NSArrayController confguration, with Array Controller's Content Array bound to NSMutableArray called "usersArray" What I'm trying to do is to have an KVO observer setup, so every time usersArray is changed I dump it to NSUsersDefault as a way to store it fo