Re: NSURLConnection

2011-06-26 Thread R
Thanks to all on the learning curve On Jun 26, 11:12 pm, Tito Ciuro wrote: > Hello, > > If you have access to the Developer Forums, check the very first entry in > Core OS named "Five Reasons Why Synchronous Networking Is Bad", by Apple's > Quinn "The Eskimo!": > > https://devforums.apple.c

Re: Masking UIImages (yes, again)

2011-06-26 Thread Gustavo Pizano
I was on the same boat a few weeks ago and I wanted to ask something similar but I completely forgot. I was trying to mask an image with a mask image created from a bezier path, the idea was that I created my bezier path then I fill EO the path so the part that was supposed to mask I left it o

Re: NSURLConnection

2011-06-26 Thread Tito Ciuro
Hello, If you have access to the Developer Forums, check the very first entry in Core OS named "Five Reasons Why Synchronous Networking Is Bad", by Apple's Quinn "The Eskimo!": https://devforums.apple.com/thread/9606?tstart=0 Cheers, -- Tito On Jun 26, 2011, at 9:51 PM, Jerry Krinock wrote:

Re: NSURLConnection

2011-06-26 Thread Jerry Krinock
On 2011 Jun 26, at 09:52, Fritz Anderson wrote: > Synchronous network operations are almost always a bad idea. …, …, …, …, and the error object that you get from -sendSynchronousRequest:returningResponse:error: if it fails is quite nondescript. ___

Re: NSBrowser matrix

2011-06-26 Thread Ari Black
On 11-06-26 7:04 AM, Fritz Anderson wrote: On 25 Jun 2011, at 7:05 PM, Ari Black wrote: @implementation SpecialMatrix - (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows numberOfColumns:(NSInteger)numColumns { int x;

Re: MFMailComposeViewController: referencing attached data in HTML body

2011-06-26 Thread Heath Borders
You could base64 your image data and use a data url to refer to it within your HTML. Then, you wouldn't have to attach it. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Sun, Jun 26, 2011 at 6:14 PM, Pierre Fournier wrote: > > Hi,is there a way

Re: network volume names changing etc.

2011-06-26 Thread Ken Thomases
On Jun 26, 2011, at 8:08 PM, Chris Idou wrote: > I've noticed that Mac OS sometimes silently changes the UNIX mount name of > network volumes. For example, if I mount a network volume of Media, it would > normally be /Volumes/Media, but sometimes it isn't. For example, if another > user > on t

network volume names changing etc.

2011-06-26 Thread Chris Idou
I've noticed that Mac OS sometimes silently changes the UNIX mount name of network volumes. For example, if I mount a network volume of Media, it would normally be /Volumes/Media, but sometimes it isn't. For example, if another user on the same machine mounts Media first, then you might end up

MFMailComposeViewController: referencing attached data in HTML body

2011-06-26 Thread Pierre Fournier
Hi,is there a way to reference the attached data within the HTML body?[mailController addAttachmentData:pngDataFooter mimeType:@"image/png" fileName:@"footer.png"];[mailController setMessageBody:@"" isHTML:TRUE];When running such code, I get a blue question mark instead of the image, while the

Re: Masking UIImages (yes, again)

2011-06-26 Thread Luke Hiesterman
On Jun 26, 2011, at 3:06 PM, "James Miller" wrote: > I've been reading and experimenting and browsing and reading and > experimenting but mostly failing miserably here and I need to ask the hive > mind for some assistance. > > In a nutshell, I'm just trying to take a range of white colors ou

Masking UIImages (yes, again)

2011-06-26 Thread James Miller
I've been reading and experimenting and browsing and reading and experimenting but mostly failing miserably here and I need to ask the hive mind for some assistance. In a nutshell, I'm just trying to take a range of white colors out of a UIImage and make those colors transparent. From what I've

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread Tales Pinheiro de Andrade
Well, I used the macro UIDeviceOrientationIsLandscape, I'm assuming that this is for both sides: #define UIDeviceOrientationIsPortrait(orientation) ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown) #define UIDeviceOrientationIsLandscape(ori

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread David Duncan
Yes, scroll views layout during scroll. But the reSl problem is likely in your use of device orientation. Specifically unlike interface orientation, not being landscape is not the same ad bring portrait, as device orientation has 3 additional orientations. If you want to match your interface ori

Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread Tales Pinheiro de Andrade
Hi. I have a few custom views of three kind inside a custom UIScrollview. I'm trying to resize these custom views as the device change the orientation. I added these custom views programatically to the custom UIScrollView. I implemented in the custom UIScrollview the below method - (void)layou

Re: NSURLConnection

2011-06-26 Thread Gary L. Wade
The asynchronous option allows you to report progress and utilize your data immediately and do with it whatever you wish while the synchronous option requires you wait until the entire data has been retrieved, possibly an issue if you have data of any size. Also, for UI responsiveness, the synch

Re: NSURLConnection

2011-06-26 Thread Fritz Anderson
On 26 Jun 2011, at 11:37 AM, R wrote: > Any opinions on which approach is better. > > NSData *data = [NSURLConnection sendSynchronousRequest:request > returningResponse:&response > error:&error]; > > OR > > connectionInProgress=[[N

NSURLConnection

2011-06-26 Thread R
Any opinions on which approach is better. NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response

Re: Re-using the same NIB on two owners

2011-06-26 Thread Sherm Pendley
On Sun, Jun 26, 2011 at 11:16 AM, Daniel Luis dos Santos wrote: > > My problem is that I need to load the same NIB from two different classes, so > the owner is different according to which class I load it from. > Is there another way to do it without the file's owner ? Subclassing the > control

Re-using the same NIB on two owners

2011-06-26 Thread Daniel Luis dos Santos
Hello, I have an application that has two windows. Each window is associated to a controller class. On one method of each class I load another NIB that has a subordinate window. That subordinate NIB has outlets and actions that should be associated to the loading class, so on the NIB I set the

Re: Animating handwriting

2011-06-26 Thread Gustavo Pizano
Ok I will check in Photoshop and create the animation there. Thanks all for the reply G On Jun 25, 2011, at 4:47 AM, Scott Anguish wrote: > I don’t think it’s the amount of page space, rather the quantity of the > alphabet. > > If this is just for an effect for an about screen or soemthing, I’d

Re: DO independentConversationQueueing, invocation from callback

2011-06-26 Thread Dave Keck
I wrote a small test case that exhibits the problem: http://pastie.org/2124066 It can be compiled and run like this: killall -KILL dotest; gcc -framework Foundation dotest.m -o dotest; ./dotest When independentConversationQueueing is disabled (see EnableICQ()), ProcessC receives the -do

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-26 Thread Andy Lee
On Jun 26, 2011, at 6:09 AM, Bill Cheeseman wrote: > > On Jun 25, 2011, at 7:52 PM, Andy Lee wrote: > >> get application id "com.yourcompany.TrivialScriptable" >> set myApp to result >> tell myApp > > > It has been true since the beginning of time (1993) that you cannot 'tell' a > variable but

Re: NSBrowser matrix

2011-06-26 Thread Fritz Anderson
On 26 Jun 2011, at 6:18 AM, Ari Black wrote: >> Second step: Maybe an NSBrowser doesn't instantiate any matrices until you >> have responded to browser:numberOfRowsInColumn: with a non-zero value? >> >> — F > > That's possible, but I've tested adding items to the columns and > SpecialMatr

Re: NSBrowser matrix

2011-06-26 Thread Fritz Anderson
On 25 Jun 2011, at 7:05 PM, Ari Black wrote: > @implementation SpecialMatrix > > - (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode > prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows > numberOfColumns:(NSInteger)numColumns { >int x; >x = 0; // I put a breakpoint he

Re: [ANN] CoreParse

2011-06-26 Thread Thomas Davie
On 6 Jun 2011, at 16:10, Philip Mötteli wrote: > I really appreciate how BN support is implemented in ParseKit: > . I like it very much, that there are no > numbers, but call backs for every token, using method-names (c. f. above URL > under "Instantiating Gr

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-26 Thread Bill Cheeseman
On Jun 25, 2011, at 7:52 PM, Andy Lee wrote: > get application id "com.yourcompany.TrivialScriptable" > set myApp to result > tell myApp It has been true since the beginning of time (1993) that you cannot 'tell' a variable but must instead 'tell' the application, at least in most cases. It's

Caching Streaming video

2011-06-26 Thread Nathan Day
I am trying to playback video in my iOS app while I am loading and caching it at the same time. I fetch the video using a NSURLConnection and then store it in a local file, I start video playback of the local video file after a certain number of bytes are received. I have it working great in the

Re: Detect shift key down

2011-06-26 Thread Bernard Desgraupes
Le 26 juin 11 à 07:22, Richard Somers a écrit : On Jun 24, 2011, at 1:19 AM, Bernard Desgraupes wrote: I need to detect if the shift key is pressed by the user during the startup of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? Try this. http://www.cocoabuild