Re: Javascript call function Objective-C

2013-07-04 Thread Jens Alfke
On Jul 4, 2013, at 6:20 AM, Tibira Botto wrote: > it is possible to access a javascript function in Objective-C? From the example it looks like you mean “is it possible to call an Objective-C function from JavaScript”. Look at for how to do this. There are lots of comments that explain it.

Re: Why isn't scrollRectToVisible animating?

2013-07-04 Thread Jens Alfke
On Jul 4, 2013, at 1:16 PM, Michael Crawford wrote: > Are you sure that your swipeWithEvent method is actually getting called? Yes, it is. I put in an NSLog statement to make sure. Also, the distance scrolled is correct, and totally not something AppKit could guess on its own. —Jens _

Re: Changing Text Field Color to Custom Color in IB

2013-07-04 Thread Folami Nguyen
When you are dealing with NSColor in Mac OS X. You must pay attention to current NSColorSpace. It is depend on your current color profile. It is changable in the System Preference. If the code you are make NSColor object by message colorWithCalibratedRed:green:blue:alpha:, you are using NSCalibrate

Javascript call function Objective-C

2013-07-04 Thread Tibira Botto
it is possible to access a javascript function in Objective-C? didactic example: - (NSString *) getName { return @ "Test" } in javascript function writeReturn(text) { document.write (text) } onclick = writeReturn (getName () function that in Objective-C). I'm using Webview and dev

Re: The Documentation says "that is a member variable" SOLVED

2013-07-04 Thread YT
OH good grief - I've been at my terminal too long - The declaration syntax is just wrong WRONG: @property (UITextField *) activeField; CORRECT: @property UITextField * activeField; Sorry for the bother YT On Jul 4, 2013, at 5:41 PM, YT wrote: > In the online document "Managing the K

The Documentation says "that is a member variable"

2013-07-04 Thread YT
In the online document "Managing the Keyboard" under the heading "Moving Content That is Located Under the Keyboard" There is some nifty code listings Listing 4-1 Handling the keyboard notifications Listing 4-2 Additional methods for tracking the active text field. AND there is some explana

Re: Changing Text Field Color to Custom Color in IB

2013-07-04 Thread Keary Suska
On Jul 4, 2013, at 8:24 AM, Dave wrote: > How do you change a label field's color to a custom color in Interface > Builder? I want the labels to have the their RGB values set to 72, 35, 122. I > select the field in interface builder Click on the Color field in the > appropriate strip on the rig

Re: Why isn't scrollRectToVisible animating?

2013-07-04 Thread Michael Crawford
Are you sure that your swipeWithEvent method is actually getting called? Maybe Cocoa is handling the scrolling itself, because it automagically recognizes the swipe gesture. Also check the ensure that you're actually detecting a three-fingered gesture. I did not use gesture recognizers in Warp L

Why isn't scrollRectToVisible animating?

2013-07-04 Thread Jens Alfke
Most of the time NSScrollView’s animated scrolling Just Works. But I’m running into a frustrating edge case where the exact same scroll code animates in response to one UI event but not another. Here’s the deal: In my app the left and right arrow keys jump to the previous/next track marker in a

Re: Post to a particular friend or friends group on Facebook

2013-07-04 Thread Devarshi Kulshreshtha
.. without using NSSharingServicePicker or UIActivityViewController On Thu, Jul 4, 2013 at 10:31 PM, Devarshi Kulshreshtha < devarshi.bluec...@gmail.com> wrote: > We can post to all our friends on facebook using this key value pair: > > @"ACFacebookAudienceKey" : ACFacebookAudienceFriends > > Is

Post to a particular friend or friends group on Facebook

2013-07-04 Thread Devarshi Kulshreshtha
We can post to all our friends on facebook using this key value pair: @"ACFacebookAudienceKey" : ACFacebookAudienceFriends Is there any way by which we can post to a particular friend group say - "Colleague" or "School Friends" or to post to a particular friend. Please suggest. -- Thanks, Dev

Re: Carbon removal

2013-07-04 Thread Jerry Krinock
On 2013 Jul 04, at 02:14, Uli Kusterer wrote: > What this does is switch the entire application to be compiled as 64-bit, Yes, you're correct, Uli. I moshed in the 64-bit conversion with this as extra insurance. > which just happens to have the side-effect of not supporting most of the >

Changing Text Field Color to Custom Color in IB

2013-07-04 Thread Dave
Hi, How do you change a label field's color to a custom color in Interface Builder? I want the labels to have the their RGB values set to 72, 35, 122. I select the field in interface builder Click on the Color field in the appropriate strip on the right and it's hit and miss what happens!!! Som

Re: CGContext - Drawing Circle

2013-07-04 Thread Dave
Hi, Yes, this worked! I subtracted 2 from the Radius - thanks a lot for your help! All the Best Dave On 4 Jul 2013, at 14:22, Roland King wrote: > > On 4 Jul, 2013, at 8:17 PM, Ken Thomases wrote: > >> >> Is theDrawRect coincident with the view's bounds? If so, then the edges of >> your

Re: CGContext - Drawing Circle

2013-07-04 Thread Roland King
On 4 Jul, 2013, at 8:17 PM, Ken Thomases wrote: > > Is theDrawRect coincident with the view's bounds? If so, then the edges of > your circle will be clipped. > > A stroked path straddles the imaginary zero-width path described by the > geometry (a circle in this case). Since your line widt

Re: CGContext - Drawing Circle

2013-07-04 Thread Markus Spoettl
On 7/4/13 2:35 PM, Dave wrote: > Here is the call: > > > - (void)drawRect:(CGRect) theDrawRect > { > switch (mCheckBoxStyle) > { > case kCheckBoxStyleBox: > [self drawCheckBoxStyleBox:theDrawRect]; > break; > > case kCheckBoxStyleCircle: > [self drawCheckBoxStyleCircle:theD

Re: CGContext - Drawing Circle

2013-07-04 Thread Markus Spoettl
On 7/4/13 2:35 PM, Dave wrote: Here is the call: - (void)drawRect:(CGRect) theDrawRect { switch (mCheckBoxStyle) { case kCheckBoxStyleBox: [self drawCheckBoxStyleBox:theDrawRect]; break; case kCheckBoxStyleCircle: [self drawCheckBoxStyleC

Re: CGContext - Drawing Circle

2013-07-04 Thread Dave
Here is the call: - (void)drawRect:(CGRect) theDrawRect { switch (mCheckBoxStyle) { case kCheckBoxStyleBox: [self drawCheckBoxStyleBox:theDrawRect]; break; case kCheckBoxStyleCircle: [self drawCheckBoxStyleCircle:theDrawRect]; break

Re: CGContext - Drawing Circle

2013-07-04 Thread Dave
Hi, Thanks for your help. The top/bottom/left/right sides of the "circle" as flattened, I've also tried the elipse function "CGContextStrokeEllipseInRect", which is the same. I'm using a Rect of size 30,30 as theDrawRect input parameter. Cheers Dave On 4 Jul 2013, at 13:01, Ronald Hofmann wr

Re: CGContext - Drawing Circle

2013-07-04 Thread Ken Thomases
On Jul 4, 2013, at 6:44 AM, Dave wrote: > I have a custom class, subclassed from UIControl that draws a circle with an > X in it (like a circular check box control). This works ok, but the circle > looks scrappy when displayed on the iPad. The method that does the work is > appended to this mai

Re: CGContext - Drawing Circle

2013-07-04 Thread Markus Spoettl
On 7/4/13 1:44 PM, Dave wrote: I have a custom class, subclassed from UIControl that draws a circle with an X in it (like a circular check box control). This works ok, but the circle looks scrappy when displayed on the iPad. The method that does the work is appended to this mail and is called fro

CGContext - Drawing Circle

2013-07-04 Thread Dave
Hi, I have a custom class, subclassed from UIControl that draws a circle with an X in it (like a circular check box control). This works ok, but the circle looks scrappy when displayed on the iPad. The method that does the work is appended to this mail and is called from the drawRect method of

Re: Carbon removal

2013-07-04 Thread Uli Kusterer
On Jul 3, 2013, at 21:40, Jerry Krinock wrote: > To answer your question, I think the procedure is… > > * In your main target and its target dependencies, > * Set the SDK to "Latest Mac OS X". > * Set the architecture to x86_64. > * Clean your project, so that everything will be recompiled. > *

Re: Carbon removal

2013-07-04 Thread Uli Kusterer
On Jul 3, 2013, at 19:23, Chris Paveglio wrote: > I've got a project that I am working with, that I did not create. I am trying > to understand it and I would like to remove the Carbon framework dependencies > in it. I don't know anything about Carbon. Is there a good resource to read > up on