Re: Core Data Lightweight Migration Woes

2010-08-19 Thread Steve Steinitz
Hi Brad, After much struggle and even writing a nightmare migrator app, I discovered one day that the lightweight migration really does work. In broad brush strokes here's what I did: - Removed all the complicated migration support code that had never worked... - ...except the code that en

Re: 64KB limit in passed in text for a service using NSTask

2010-08-19 Thread Ron Fleckner
On 20/08/2010, at 2:37 PM, Ken Thomases wrote: > On Aug 19, 2010, at 10:00 PM, Ron Fleckner wrote: > >> I'm developing a stand alone text service for changing/fixing case. For the >> simple cases of uppercasing and lowercasing I've simply used NSString's >> built in methods. But to correct s

Re: stringWithQuotedPrintableString almost perfect

2010-08-19 Thread Stephen J. Butler
On Thu, Aug 19, 2010 at 9:27 PM, Brad Stone wrote: > Can someone help me figure out why (brackets not included)  [•  m]  (which > is, on the Mac, an option-8 character, a tab character and a lowercase m) > converts to (brackets not included [‚Ä¢ m] ? > > The source text  is quoted-printable UTF-

Re: 64KB limit in passed in text for a service using NSTask

2010-08-19 Thread Ken Thomases
On Aug 19, 2010, at 10:00 PM, Ron Fleckner wrote: > I'm developing a stand alone text service for changing/fixing case. For the > simple cases of uppercasing and lowercasing I've simply used NSString's built > in methods. But to correct sentence case, where the original text may have > lowerc

Re: Set the Cursor Position

2010-08-19 Thread Ken Thomases
On Aug 19, 2010, at 8:43 PM, Sherm Pendley wrote: > On Thu, Aug 19, 2010 at 9:32 PM, Murat Konar wrote: >> CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point); >> >> But heed the other's hints that, except for special classes of software >> (like a VNC app), software that warps

Re: stringWithQuotedPrintableString almost perfect

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 19:27, Brad Stone wrote: > Can someone help me figure out why (brackets not included) [•m] > (which is, on the Mac, an option-8 character, a tab character and a lowercase > m) converts to (brackets not included [‚Ä¢ m] ? > > The source text is quoted-printable UTF

Re: NSImageView and ZoomFactors

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 19:56, Kyle Sluder wrote: > It sounds as if you're conflating bounds transformation scaling with > NSImageView size-to-fit-frame scaling. It's usually the case that you > don't want to rely on a scaled bounds coordinate system to draw zoomed > UI for the precise reason you ment

Re: Add video issue using HTML with JSON wrapper IOS4

2010-08-19 Thread Kyle Sluder
On Thu, Aug 19, 2010 at 12:32 PM, Kevin Phillips wrote: > The current project I am working on is based in the HTML language with a java > wrapper to go on the iphone IOS4. None of this has to do with Cocoa. ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Add video issue using HTML with JSON wrapper IOS4

2010-08-19 Thread Kevin Phillips
Hello all, The current project I am working on is based in the HTML language with a java wrapper to go on the iphone IOS4. My current issue is that video is not being handled the way I want it to. The video should open with 1 click and return to the previous screen. If anyone has any advice/sug

Re: iphone large image downloading

2010-08-19 Thread Shazron Abdullah
Write the image data to disk as it comes in instead of putting in a NSData, so that you don't need to put it all in memory. Use NSFileHandle:writeData. On 2010-08-19, at 5:48 AM, SanthoshKumarGundu wrote: > Hi all, > > I have modified my code to send asynchronous request using the below > > NS

64KB limit in passed in text for a service using NSTask

2010-08-19 Thread Ron Fleckner
Hi, I'm developing a stand alone text service for changing/fixing case. For the simple cases of uppercasing and lowercasing I've simply used NSString's built in methods. But to correct sentence case, where the original text may have lowercase letters following full stops (period in American?)

Re: NSImageView and ZoomFactors

2010-08-19 Thread Kyle Sluder
On Thu, Aug 19, 2010 at 4:54 PM, Quincey Morris wrote: > On Aug 19, 2010, at 12:44, Brian Postow wrote: > >> ah, so, the way to zoom is to leave the NSImageView on >> NSImageScaleProportionallyUpOrDown, and then change the size of the frame! >> That gives me scrollbars! > > I had to go out for a

Re: Set the Cursor Position

2010-08-19 Thread mlist0...@gmail.com
Some audio software does a similar thing for adjusting on screen knobs. I much un-love it. _murat On Aug 19, 2010, at 6:43 PM, Sherm Pendley wrote: > One such exception would be 2d or 3d graphics apps, where it's > expected to have a tool that allows the user to click and drag to > scale or rot

Re: File system caching of - xxxxWithContentsOfFile:

2010-08-19 Thread Ken Ferry
By default all file access is Mac OS X is cached, external to the process, in the unified buffer cache. Certain APIs may disable it if they're pretty sure it's wrong, but for the most part,

Re: Losing my memory - a caching problem?

2010-08-19 Thread Ken Ferry
On Wed, Aug 18, 2010 at 9:57 AM, Shawn Erickson wrote: > On Wed, Aug 18, 2010 at 3:45 AM, Stuart Rogers > wrote: > > On 18 Aug 2010, at 01:31, Ken Thomases wrote: > >> On Aug 17, 2010, at 7:26 PM, Shawn Erickson wrote: > >> > >>> When you say "free" I assume you mean the "free:" number listed in

stringWithQuotedPrintableString almost perfect

2010-08-19 Thread Brad Stone
Can someone help me figure out why (brackets not included) [• m] (which is, on the Mac, an option-8 character, a tab character and a lowercase m) converts to (brackets not included [‚Ä¢ m] ? The source text is quoted-printable UTF-8 text I created and saved in an XML file in a different app

Re: Set the Cursor Position

2010-08-19 Thread Sherm Pendley
On Thu, Aug 19, 2010 at 9:32 PM, Murat Konar wrote: > CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point); > > But heed the other's hints that, except for special classes of software > (like a VNC app), software that warps the pointer's location independent of > the mouse is much

Re: Set the Cursor Position

2010-08-19 Thread Chris Williams
"software that warps the pointer's location independent of the mouse is much un-loved on the Mac." SB "much unloved on the planet". Am in the process of fixing another program that does this (on another OS) and it's the most frustrating UI I've ever been exposed to.

Re: Set the Cursor Position

2010-08-19 Thread Murat Konar
CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point); But heed the other's hints that, except for special classes of software (like a VNC app), software that warps the pointer's location independent of the mouse is much un-loved on the Mac. _murat On Aug 19, 2010, at 6:13 P

Re: Set the Cursor Position

2010-08-19 Thread Kiel Gillard
http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/c/func/CGDisplayMoveCursorToPoint On 20/08/2010, at 10:30 AM, k...@highrolls.net wrote: > I haven't seen anything in the docs ... is there a way to set the curso

Re: Set the Cursor Position

2010-08-19 Thread Koko
The mouse cursor, can it be set to some position? -koko On Aug 19, 2010, at 7:03 PM, James Walker wrote: On 8/19/2010 5:30 PM, k...@highrolls.net wrote: I haven't seen anything in the docs ... is there a way to set the cursor position? Do you mean the mouse cursor or the text insertion cu

Re: Set the Cursor Position

2010-08-19 Thread James Walker
On 8/19/2010 5:30 PM, k...@highrolls.net wrote: I haven't seen anything in the docs ... is there a way to set the cursor position? Do you mean the mouse cursor or the text insertion cursor? It's unusual to set the mouse cursor, since that's normally under user control, unless you're writing

Re: Core Data Lightweight Migration Woes

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 14:31, Brad Gibbs wrote: > // create object for prototype model > NSString *prototypePath = [[NSBundle mainBundle] > pathForResource:@"IconConfig" ofType:@"mom"]; > > if (prototypePath == nil) { > prototypePath = [[NSBundle mainBundle] >

Set the Cursor Position

2010-08-19 Thread Koko
I haven't seen anything in the docs ... is there a way to set the cursor position? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-

Re: NSImageView and ZoomFactors

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 12:44, Brian Postow wrote: > ah, so, the way to zoom is to leave the NSImageView on > NSImageScaleProportionallyUpOrDown, and then change the size of the frame! > That gives me scrollbars! I had to go out for a while before finishing my last post, but I wanted to point out

Re: UIGestureRecognizer and CALayers

2010-08-19 Thread Dave DeLong
Well, seeing as how CALayer does not have an addGestureRecognizer: method, my answer would be "No". Dave On Aug 19, 2010, at 3:01 PM, Philip Mobley wrote: > Are UIGestureRecognizers allowed to be attached to individual CALayers within > a UIView layer hierarchy? I originally posted this to th

Re: Core Data Bindings Issue

2010-08-19 Thread Frank D. Engel, Jr.
Aha! I did have custom accessors (I'd actually forgotten about them, I've let this sit too long...), but when comparing against that documentation I found the problem. My notifications (didChange/etc.) were sent for the primitive values instead of using the straight names -- "primitiveSo

UIGestureRecognizer and CALayers

2010-08-19 Thread Philip Mobley
Are UIGestureRecognizers allowed to be attached to individual CALayers within a UIView layer hierarchy? I originally posted this to the quartz-dev list, but it was recommended to ask here instead. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: UIView antialiasing

2010-08-19 Thread Conrad Shultz
On 8/19/10 1:25 PM, David Duncan wrote: > On Aug 19, 2010, at 1:21 PM, Conrad Shultz wrote: > >> This matter has been discussed somewhat online >> (e.g. >> http://stackoverflow.com/questions/2465645/how-to-anti-alias-layers-in-iphoneos) >> but the proposed solution - adding a one pixel transparen

Core Data Lightweight Migration Woes

2010-08-19 Thread Brad Gibbs
I'm still having problems migrating to a new version of my data model. I created a small project to test migration and everything worked smoothly -- so smoothly that trying to get it to fail wasn't easy. But, doing the same sorts of things to migrate to a new version of the data model in my ma

Re: UIView antialiasing

2010-08-19 Thread David Duncan
On Aug 19, 2010, at 1:21 PM, Conrad Shultz wrote: > This matter has been discussed somewhat online (e.g. > http://stackoverflow.com/questions/2465645/how-to-anti-alias-layers-in-iphoneos) > but the proposed solution - adding a one pixel transparent border - seems > clumsy and inelegant, which m

UIView antialiasing

2010-08-19 Thread Conrad Shultz
Hi all, I have what I feel should be a stupidly simple question but the answer is eluding me. I have a custom UIView (actually, UIControl) that uses Core Graphics to draw its content. This works fine. I then rotate the UIView (using the transform property of the view), which gives a rotated vi

Re: NSImageView and ZoomFactors

2010-08-19 Thread Brian Postow
On Aug 19, 2010, at 2:33 PM, Quincey Morris wrote: > >> How big do I make the imageview? Currently, it's the same size as the >> clipview. > > It doesn't matter what you do in IB, because you're going to have to do > something else programmatically later. You basically have 2 modes: zoom to

Re: Trying to capture XML data and convert to a String...

2010-08-19 Thread R
Thanks Sherm… On Aug 19, 2010, at 1:38 AM, Sherm Pendley wrote: > On Wed, Aug 18, 2010 at 3:11 PM, R wrote: >> I'm new and in the process of learning Objective-C and Cocoa. >> >> I want to take some raw XML data, isolate, and convert to a string. I seem >> to be able to capture the data I wan

Re: iphone large image downloading

2010-08-19 Thread Mike Abdullah
On 19 Aug 2010, at 13:48, SanthoshKumarGundu wrote: > Hi all, > > I have modified my code to send asynchronous request using the below > > NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest: >[NSURLRequest > requestW

Re: NSImageView and ZoomFactors

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 11:12, Brian Postow wrote: > Ok, the NSScrollView came with an NSView in it. I changed that to NSClipView, > and added an NSImageView in the clipview. Er, no. The NSScrollView came with a NSClipView and a NSView, but IB helpfully hides the NSClipView. So you don't need to ad

Re: NSImageView and ZoomFactors

2010-08-19 Thread Brian Postow
[Dagnabit, did reply instead of reply all] On Aug 19, 2010, at 1:45 PM, Quincey Morris wrote: > On Aug 19, 2010, at 07:16, Brian Postow wrote: > >> so, are you suggesting that I manually control the "zoom-to-fit" >> functionality, and change the size of the image as the window changes size >

Re: Modifying the Window Menu

2010-08-19 Thread Michael Dautermann
On Aug 18, 2010, at 5:56 PM, Peter Zegelin wrote: > My app allows the user to create a number of sub windows for each document. > > I would prefer the layout to be more like Xcode where the sub windows of a > project are added below the main document entry and indented: > > > MyDoc > SubW

Re: iphone large image downloading

2010-08-19 Thread SanthoshKumarGundu
Hi all, I have modified my code to send asynchronous request using the below NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest: [NSURLRequest requestWithURL:

NSTextView rotation issues

2010-08-19 Thread Karthik M
Hello I have a text view which is rotated by an angle. When textview is rotated, the text editing cursor is not rendered properly, also the text selection using mouse drag is inconsistent. I have used setFrameCenterRotation: api to rotate textview. Is this the correct approach to rotate text v

Re: NSImageView and ZoomFactors

2010-08-19 Thread Quincey Morris
On Aug 19, 2010, at 07:16, Brian Postow wrote: > so, are you suggesting that I manually control the "zoom-to-fit" > functionality, and change the size of the image as the window changes size > myself so I can keep track of the "desired display scale"? or is there some > other way of getting th

Re: CGEvent with double click

2010-08-19 Thread Joe Turner
Wow, when I glanced over that I assume the "state" would mean up or down, so I didn't look into it. Thanks so much man! I owe you one :) Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: NSImageView and ZoomFactors

2010-08-19 Thread Brian Postow
On Aug 18, 2010, at 7:07 PM, Quincey Morris wrote: > On Aug 18, 2010, at 15:01, Brian Postow wrote: > >> The two things that IKImageView gave me that I'm having trouble making >> NSImageView do a similar thing are 1) zooming and 2) the mouse-tools. >> >> 1) I can see how to use scaleUnitSquare

Re: Trying to capture XML data and convert to a String...

2010-08-19 Thread Sherm Pendley
On Wed, Aug 18, 2010 at 3:11 PM, R wrote: > I'm new and in the process of learning Objective-C and Cocoa. > > I want to take some raw XML data, isolate, and convert to a string.  I seem > to be able to capture the data I want, but cannot seem to get into a string > format.  Actually, I will want

Core Animation. issue with scaling

2010-08-19 Thread Ahsan Shafiq
Hi I have read that in explicit animation, say translation, to really change the model layer position we have to change it's position too. So here is my code: CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"position"]; CGPoint pt = CGPointMa

Re: stringByReplacingCharactersInRange leading to bus error

2010-08-19 Thread Allen Ingling
On Wed, Aug 18, 2010 at 1:52 PM, Murat Konar wrote: > > On Aug 18, 2010, at 11:06 AM, John C. Randolph wrote: > > -stringByReplacingCharactersInString: creates and returns a new string, >> which is autoreleased. >> > > Always? I recall running into a problem that was caused by > -stringByReplaci

Trying to capture XML data and convert to a String...

2010-08-19 Thread R
I'm new and in the process of learning Objective-C and Cocoa. I want to take some raw XML data, isolate, and convert to a string. I seem to be able to capture the data I want, but cannot seem to get into a string format. Actually, I will want in a NSMutableString format… but am keeping things

Re: stringByReplacingCharactersInRange leading to bus error

2010-08-19 Thread Allen Ingling
On Tue, Aug 17, 2010 at 4:03 PM, James Miller wrote: > Hello. > > I'm a little new to Objective-C / Cocoa so please don't shoot me, but I've > been looking around for a few hours and can't seem to figure out what I'm > doing wrong on my own and could use a second/third/fourth set of eyes. > > I h