Re: Editing multiple selections with bindings

2013-01-03 Thread Keary Suska
On Jan 3, 2013, at 3:53 PM, Patrick Cusack wrote: > Keary, > > I am checking whether or not the user is trying to edit multiple items in my > delegate's - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText > *)fieldEditor > > If the choose to not complete editing, I should be able

Re: scroll bars and visible rect

2013-01-03 Thread Graham Cox
You're confusing CAScrollLayer (Core Animation) with NSScrollView. I *think* that NSScrollVIew's visible rect changes when the scroll bars are shown/hidden. That would stand to reason. Basing the size of some content on the visible rect sounds like a bad idea - you might sometimes use this to d

Re: Custom initWithFrame?

2013-01-03 Thread Eric E. Dolecki
Yes, thank you. That's perfect. Eric Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Jan 3, 2013 at 8:38 PM, Jonathan Hull wrote: > Sure, just define initWith…. in your subclass and call

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 6:23 PM, koko wrote: > I beg to differ with you all: (Snip) > > Declared In > > CAScrollLayer.h > What I wrote: > > > On Jan 3, 2013, at 11:07 AM, Kyle Sluder wrote: >> >> >> Wait hold on, you ARE talking about OS X. But you copied docs that are >> either from Core

Re: scroll bars and visible rect

2013-01-03 Thread koko
I beg to differ with you all: visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect Discussion The visible region is the area not clipped by the containing scroll layer. Availability Available in Mac OS X v10.5

Re: Custom initWithFrame?

2013-01-03 Thread Jean Suisse
On 4 janv. 2013, at 02:28, Eric Dolecki wrote: > I am creating a UIView-based control that I would also like to pass in > parameters at the time of creation. Is this doable? I don't want to keep > calling methods on my object if I can pass all with initwithframe somehow. > > Thanks, > Eric Eric

Re: Custom initWithFrame?

2013-01-03 Thread Jonathan Hull
Sure, just define initWith…. in your subclass and call super -initWithFrame: from it. Thanks, Jon On Jan 3, 2013, at 5:28 PM, Eric Dolecki wrote: > I am creating a UIView-based control that I would also like to pass in > parameters at the time of creation. Is this doable? I don't want to keep

Custom initWithFrame?

2013-01-03 Thread Eric Dolecki
I am creating a UIView-based control that I would also like to pass in parameters at the time of creation. Is this doable? I don't want to keep calling methods on my object if I can pass all with initwithframe somehow. Thanks, Eric Sent by Eric's faithful iPad.

Re: Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
Yes, actually I do both. m. On Jan 3, 2013, at 3:42 PM, Kyle Sluder wrote: > On Thu, Jan 3, 2013, at 02:54 PM, Matt Neuburg wrote: >> I didn't say the transliteration was simple. I had to devise a code >> (properly called a "beta code") that would yield the correct result. To >> give a simple exa

Re: Core Data and localized sort on iOS

2013-01-03 Thread Kyle Sluder
On Thu, Jan 3, 2013, at 02:54 PM, Matt Neuburg wrote: > I didn't say the transliteration was simple. I had to devise a code > (properly called a "beta code") that would yield the correct result. To > give a simple example, if you want a-accent-aigu to sort before > a-accent-grave, you might transli

Re: Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
On Jan 3, 2013, at 12:49 PM, Fritz Anderson wrote: > A simple transliteration I didn't say the transliteration was simple. I had to devise a code (properly called a "beta code") that would yield the correct result. To give a simple example, if you want a-accent-aigu to sort before a-accent-gra

Re: Editing multiple selections with bindings

2013-01-03 Thread Patrick Cusack
Keary, I am checking whether or not the user is trying to edit multiple items in my delegate's - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor If the choose to not complete editing, I should be able to discard editing on the bound NSArrayController, but my contr

Re: Core Data and localized sort on iOS

2013-01-03 Thread Fritz Anderson
On 3 Jan 2013, at 2:08 PM, Matt Neuburg wrote: > What I do in my Core Data-based Latin and Greek vocabulary list iOS apps is > maintain extra fields (attributes) that contain transliterations of the > Greek/Latin terms into the English alphabet in such a way that sorting > normally on those fi

Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
What I do in my Core Data-based Latin and Greek vocabulary list iOS apps is maintain extra fields (attributes) that contain transliterations of the Greek/Latin terms into the English alphabet in such a way that sorting normally on those fields gives me the order that is correct for Greek/Latin.

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. > > > And I

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. Well I'm gla

Re: scroll bars and visible rect

2013-01-03 Thread koko
visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect Discussion The visible region is the area not clipped by the containing scroll layer. And I may have answered my question since it says the visible region is

Re: Core Data and localized sort on iOS

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 8:49 AM, Fritz Anderson wrote: > iOS 6 > > I have (or will have) a Core Data store, one entity of which has an attribute > that is a French word. French collates differently than English or a naïve > Unicode sort would. My application will have both English and French > loc

Core Data and localized sort on iOS

2013-01-03 Thread Fritz Anderson
iOS 6 I have (or will have) a Core Data store, one entity of which has an attribute that is a French word. French collates differently than English or a naïve Unicode sort would. My application will have both English and French localizations. It is next-to-nonnegotiable that the word lists I pr

Re: LSSharedFileListInsertItemURL does not honor the display name or icon

2013-01-03 Thread Jerry Krinock
On 2013 Jan 03, at 07:21, Kyle Sluder wrote: > Does Finder expose an Apple Event API for manipulating the Favorites list? I don't know how he does it, but Cocoatech's "Path Finder" (Finder replacement app) keeps its "Favorites" in sync with Finder's Favorites. This feature was added several

Re: LSSharedFileListInsertItemURL does not honor the display name or icon

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 2:16 AM, Ben Staveley-Taylor wrote: > > I couldn't figure this out and found several similar bug reports from other > developers in various forums, so I took the plunge and asked DTS. The > official response is that: > > "Regretfully, you have run into a series of bugs fou

Re: LSSharedFileListInsertItemURL does not honor the display name or icon

2013-01-03 Thread Ben Staveley-Taylor
I thought I would share further information on this topic to help others who may come across this thread in the archives. I couldn't figure this out and found several similar bug reports from other developers in various forums, so I took the plunge and asked DTS. The official response is that:

Re: scroll bars and visible rect

2013-01-03 Thread Mike Abdullah
You need to be more specific. What precisely do you mean by "the visible rect"? On 2 Jan 2013, at 22:53, koko wrote: > Are scroll bars inside the visible rect or additive to the visible rect? > > I ask because we use the visible rect to set the size of a bitmap to display > and we are getting s

CALayer renderInContext changes zPosition of some child layers

2013-01-03 Thread Markus Spoettl
Hello, I'm having a hard time understanding a problem with CALayer's -renderInContext: I have a custom UIView with custom delegate-drawn sublayers. Almost everything renders correctly when I do this: [[view layer] renderInContext:aContext]; (the context is set up correctly and produces t