Re: Drawing images on top of each other

2011-02-03 Thread Quincey Morris
On Feb 3, 2011, at 22:58, Andrew Coad wrote: >//[[self touchClearImage] drawAtPoint:aPoint > blendMode:kCGBlendModeNormal alpha:0.0]; // <-- see note below This doesn't do anything -- alpha == 0 turns the source image fully transparent (in effect), and a transparent source has no ef

Best Approach in displaying the Image in Core Animation Layer - During the animation

2011-02-03 Thread Sasikumar JP
Hi, I am developing an iPhone application, where i present the main screen as spring board view (like iphone main screen). I am trying to implement all the features available in iphone main screen like change the Grid position and Remove the Grid in the Edit Mode. I have implemented the spring b

Drawing images on top of each other

2011-02-03 Thread Andrew Coad
I'm stuck on something that should be simple but it is evading me. I have searched this mailing list and regular documentation but can't figure out an answer. I'm using the iOS platform. Previously, my drawing code needed to draw images at different locations in the view erasing everything pri

Re: Disable Links in WebView?

2011-02-03 Thread Greg Parker
On Feb 3, 2011, at 5:03 PM, Bruce Cresanta wrote: > I am using a webarchive for editing purposes. Is there a way to > disable links via the delegate protocols? It's distracting to try to edit > link text (which really doesn't work anyway) and getting pulled off the page. Return NO from

Re: Multiple declarations of objc_msgSend_stret

2011-02-03 Thread Jeff Kelley
On Feb 3, 2011, at 9:38 PM, Greg Parker wrote: > On Feb 3, 2011, at 6:18 PM, Jeff Kelley wrote: >> I’m trying to use objc_msgSend_stret to call -bounds on a UIScreen. I have >> the following code: >> >>> SEL bounds = NSSelectorFromString(@"bounds"); >>> CGRect screenBounds; >>> objc_msgSend_stre

Re: Multiple declarations of objc_msgSend_stret

2011-02-03 Thread Kyle Sluder
On Thu, Feb 3, 2011 at 6:18 PM, Jeff Kelley wrote: > I’m trying to use objc_msgSend_stret to call -bounds on a UIScreen. I have > the following code: You need to explicitly #import (or , where the declaration really lives). Otherwise, the compiler will issue a warning (which you should have see

Re: Multiple declarations of objc_msgSend_stret

2011-02-03 Thread Greg Parker
On Feb 3, 2011, at 6:18 PM, Jeff Kelley wrote: > I’m trying to use objc_msgSend_stret to call -bounds on a UIScreen. I have > the following code: > >> SEL bounds = NSSelectorFromString(@"bounds"); >> CGRect screenBounds; >> objc_msgSend_stret((void *)&screenBounds, screen, bounds); > > The decla

Multiple declarations of objc_msgSend_stret

2011-02-03 Thread Jeff Kelley
I’m trying to use objc_msgSend_stret to call -bounds on a UIScreen. I have the following code: > SEL bounds = NSSelectorFromString(@"bounds"); > CGRect screenBounds; > objc_msgSend_stret((void *)&screenBounds, screen, bounds); The declaration of objc_msgSend_stret in the Xcode code sense pop-up

Disable Links in WebView?

2011-02-03 Thread Bruce Cresanta
Hello, I am using a webarchive for editing purposes. Is there a way to disable links via the delegate protocols? It's distracting to try to edit link text (which really doesn't work anyway) and getting pulled off the page. Thanks, Bruce _

Re: NSBitmapImageRep with floating point values

2011-02-03 Thread David Duncan
On Feb 3, 2011, at 1:32 PM, Paul Morel wrote: > in my application I would need to save an image where pixel intensities are > floating point values. Apparently TIFF can support that.But I don't know I > can do that in Objective-C. I saw that there is a bitmap format > "NSFloatingPointSamplesBit

NSTextView line wrap toggle (was NSTextView exception with line wrap and horizontal scroller - RESOLVED)

2011-02-03 Thread jonat...@mugginsoft.com
On 28 Jan 2011, at 21:34, jonat...@mugginsoft.com wrote: > Does NSTextView officially support line wrapping with the horizontal scroller > remaining visible? > I have a placard in my scroller and don't want to remove it along with the > scroller when I toggle between line wrapping and non wrapp

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
On Feb 3, 2011, at 3:05 PM, Jerry Krinock wrote: > Thanks, Glenn, and thanks, Matt, for the explanation. > > So I added a parameter to my method which one can use to get the performance > improvement only if they are willing to compromise accuracy and parsing of > numbers written in "e" notati

Re: origin: lower left vs lower right

2011-02-03 Thread John Joyce
True, you can do the affine transform, but that doesn't cover all cases of alternate glyphs that should be used for different scripts in different directions. It also doesn't really alter the way the cursor appears or how input methods appear. For many languages, this becomes a complicated user

NSBitmapImageRep with floating point values

2011-02-03 Thread Paul Morel
Hi, in my application I would need to save an image where pixel intensities are floating point values. Apparently TIFF can support that.But I don't know I can do that in Objective-C. I saw that there is a bitmap format "NSFloatingPointSamplesBitmapFormat" that can be used. Does anybody knows ho

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread Jerry Krinock
Thanks, Glenn, and thanks, Matt, for the explanation. So I added a parameter to my method which one can use to get the performance improvement only if they are willing to compromise accuracy and parsing of numbers written in "e" notation. Also, I chose a name which is less likely to used by Ap

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
I just figured out what it was. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { NSLog(@"%@", [[NSBundle bundleForClass:[self class]] bundlePath]); NSLog(@"%@", [[NSBundle bundleForClass:[self class]] pathForResource:@"Localizable" ofType:@"strings"]);

Smoothly decimating UIImageView images

2011-02-03 Thread Rick Mann
I'm doing a photo browser of sorts, as part of a larger app. We display a few thumbnails, and if the user taps one, they're presented with the full-size image. The problem is that I start with the large images, and when I set them on the small UIImageView, they're scaled down and look pretty ba

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
NSLog(@"%@", NSLocalizedStringFromTableInBundle(@"Upload File", nil, [NSBundle bundleForClass:[self class]], nil)); Just to be clear that it is in fact coming from the same bundle. The output is Upload File So it obviously is not reading from the Localized.strings file. I don't know why, but the

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
I am aware of this, this is an Application and both the strings are in the Copy Bundle Resources build phase and appear in the application the way the should. But for some reason, it doesn't work. On Feb 3, 2011, at 12:40 PM, Uli Kusterer wrote: > On 03.02.2011, at 19:33, Mr. Gecko wrote: >> He

Re: Localizable.strings not being read...

2011-02-03 Thread Uli Kusterer
On 03.02.2011, at 19:33, Mr. Gecko wrote: > Hello, I'm having a problem where NSLocalizableString isn't working in one of > my projects but it is working perfectly fine in a test project made just to > verify it is the project. I copied the same strings from one project to the > other and it all

Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
Hello, I'm having a problem where NSLocalizableString isn't working in one of my projects but it is working perfectly fine in a test project made just to verify it is the project. I copied the same strings from one project to the other and it all works... Has anyone experienced this problem? If

Re: Bizarre behaviour of NSFontDescriptor and/or NSCharacterSet

2011-02-03 Thread Brian Schack
Thanks for the informative and quick reply. I'll go ahead with the bug report. Brian ___ 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-admins

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
On Feb 3, 2011, at 10:35 AM, Jerry Krinock wrote: > -[NSScanner scanDecimal:] takes an average of 4 milliseconds to scan a short > string of decimal digits, which means tens of seconds for thousands of scans, > which is unacceptable for my application. Also, excessive memory allocations > req

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread Matt Gough
Probably because you aren't comparing like-for-like; did you try comparing it with [NSScanner scanDouble:] instead? Your code wouldn't cope with the HUGE range of numbers that scanDecimal could be required to cope with, nor the variety of formats that NSDecimalNumber could scan. Do you really

Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread Jerry Krinock
-[NSScanner scanDecimal:] takes an average of 4 milliseconds to scan a short string of decimal digits, which means tens of seconds for thousands of scans, which is unacceptable for my application. Also, excessive memory allocations require a local autorelease pool around each invocation. Surpr

RE: origin: lower left vs lower right

2011-02-03 Thread Shawn Bakhtiar
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSAffineTransform_Class/Reference/Reference.html NSAffineTransform? If you read the Drawing and Graphics documents on the developer website, they talks about the view, its bounding box, and how to achieve

Re: Reusable Cells

2011-02-03 Thread JD Guzman
Thanks for your reply Luke, and that was a great explanation.  In the end it was me misunderstanding how the mechanism works.  Your succeeded in making something that seemed like voodoo to me, become much clearer and less voodoo and more clever engineering. Regards, JD On Feb 02, 2011, at 08

Re: Custom Accessors in Core Data

2011-02-03 Thread Gordon Apple
The reason I did it the way I stated was that it is a retrofit of CoreData, and I didn't want to have to change a slew of accessor calls in existing code. Otherwise, I would agree. Doing it my way does require four accessors to be written instead of two. The form is similar for all scalers, so I

[iOS] Strange behavior of NSFetchedResultsController

2011-02-03 Thread WT
Hello list, I'm experiencing a strange behavior on the part of NSFetchedResultsController and I can't seem to find why, although I suspect it's something utterly simple that I'm just not seeing. Here's the setup. I have a list of some 20 keys the user can choose from to sort some experimental

Re: origin: lower left vs lower right

2011-02-03 Thread Uli Kusterer
On 03.02.2011, at 15:58, John Joyce wrote: > Not all human writing has a historical root in top-left to lower-right > direction! Just didn't want to confuse things even more by only talking about top-to-bottom, it doesn't really have much impact on this discussion. But it's certainly an intere

Re: origin: lower left vs lower right

2011-02-03 Thread John Joyce
On Feb 3, 2011, at 8:51 PM, Uli Kusterer wrote: > On 03.02.2011, at 04:19, Todd Heberlein wrote: >> During the recent text orientation/position thread a couple of things caught >> my attention: (1) the text system seemed designed to have a flipped view >> (origin in the upper left), and (2) the

Re: origin: lower left vs lower right

2011-02-03 Thread Uli Kusterer
On 03.02.2011, at 04:19, Todd Heberlein wrote: > During the recent text orientation/position thread a couple of things caught > my attention: (1) the text system seemed designed to have a flipped view > (origin in the upper left), and (2) the iOS version of an NSView, the UIView, > also has an o

Re: NSViewWidthSizable causing problems? [Solved]

2011-02-03 Thread Joanna Carter
Hi folks > The problem I have is that specifying NSViewWidthSizable as part of the > resizing mask means that the parent form can no longer resize. > > Have I missed something simple? As it happens, this was simply due to the fact that something in the NIB file had gotten screwed up. Once I r

Re: Which is the lightest way to draw images and text?

2011-02-03 Thread Erik Buck
On Feb 2, 2011, at 9:22 PM, Omar Hagopian wrote: > Hi there! > > I am planning to implement a component similar to the iphone's photo album.. > I guess that using uviews will make the component to have a bad performace , > I mean scrolling slow and all of the stuff ... so which way should I t

NSViewWidthSizable causing problems?

2011-02-03 Thread Joanna Carter
Hi folks I am trying to create a multi-tab NSTabView window, whose tab contents are only created when the tab is clicked on. I have set the resizing on the tab view, in IB, to follow the size of the main form. I have created another view, to be inserted into the NSTabViewItem, in a separate N