Re: UITableView with multiple UIScrollView each having its own zoom scale?

2012-08-08 Thread Laurent Daudelin
I've seen a couple of replies and I thank you guys. However, there isn't any resizing of the scrollview involved: the scrollview has a fixed size inside the cell, no matter the orientation. The problem is that I calculate the zoom scale based on the image width (in UIImageView that contains the

Re: UITableView with multiple UIScrollView each having its own zoom scale?

2012-08-08 Thread Quincey Morris
On Aug 8, 2012, at 00:27 , Laurent Daudelin wrote: > minimumScale = [self.imageScrollView frame].size.width > / [self.postPictureView frame].size.width; IDK, but this looks like the problem to me. The calculation is using rect widths that are in 2 different coordinate sy

Re: +underPageBackgroundColor

2012-08-08 Thread Uli Kusterer
On 07.08.2012, at 00:38, Graham Cox wrote: > > On 07/08/2012, at 2:38 AM, Kevin Perry wrote: > >> A stab in the dark: Have you tried running with OBJC_PRINT_REPLACED_METHODS >> set? There's a small chance that you have code in your app or a library that >> you're linking that replaces via c

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Keary Suska
On Aug 7, 2012, at 11:55 PM, Graham Cox wrote: > According to the release notes for 10.7, NSTableView should now support > contextual menus at the individual cell level: > >> NSTableView/NSOutlineView - Contextual menu support >> >> NSTableView and NSOutlineView now have better contextual menu

Re: UITableView with multiple UIScrollView each having its own zoom scale?

2012-08-08 Thread Laurent Daudelin
Thanks, Quincey! I'll give it a shot! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Aug 8, 2012, at 00:56, Quincey Morris w

Cocoaheads Lake Forest meets tonight (Wednesday) night - continuing a reading group on Matt Neuburg's Programming iOS 5, 2nd edition

2012-08-08 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Please join us from 7pm to 9pm on Wednesday, August 8. Matt Neuburg's Programming iOS 5, second e

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Corbin Dunn
On Aug 7, 2012, at 10:55 PM, Graham Cox wrote: > > > According to the release notes for 10.7, NSTableView should now support > contextual menus at the individual cell level: > >> NSTableView/NSOutlineView - Contextual menu support >> >> NSTableView and NSOutlineView now have better contextu

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Kyle Sluder
On Wed, Aug 8, 2012, at 10:38 AM, Corbin Dunn wrote: > No it hasn't changed, but the clicked row is set *after* you return a > menu. That way your menu validation code can use it. I think the > DragNDropOutlineView demo shows how to do this. I've always thought this was an extremely odd design dec

Re: +underPageBackgroundColor

2012-08-08 Thread Jayson Adams
On Aug 7, 2012, at 9:48 AM, Kyle Sluder wrote: >> Yes, and devs are also supposed to prefix their own methods to avoid exactly >> this problem. > > And if your prefix clashes with the hidden one that Apple or another > framework vendor chose, you're *still* SOL. > > Nope, we totally don't nee

Storing strings in code

2012-08-08 Thread Leo
As I recently learned, plain strings are stored "as is" in the executable and can be discovered - if opening it in a text editor, for example. That is, if I have a string @"myString" inside the code, it can be read in plain text inside the executable. I have a couple of string I don't want t

How make iPhone HOT (yes, increase the temperature)??

2012-08-08 Thread Rodrigo Zanatta Silva
Hi. I am thinking to do a funny program that make the iPhone to be HOT. I intensionally want the device increase your temperature. Using the iPhone, I knot it will be hot if I use the 3G Internet. Programing, I can try the program continually transfer files. What other strategy I can use to do th

Re: Storing strings in code

2012-08-08 Thread Rick Mann
On Aug 8, 2012, at 12:58 , Leo wrote: > As I recently learned, plain strings are stored "as is" in the executable and > can be discovered - if opening it in a text editor, for example. > > That is, if I have a string @"myString" inside the code, it can be read in > plain text inside the execut

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Corbin Dunn
On Aug 8, 2012, at 11:38 AM, Kyle Sluder wrote: > On Wed, Aug 8, 2012, at 10:38 AM, Corbin Dunn wrote: >> No it hasn't changed, but the clicked row is set *after* you return a >> menu. That way your menu validation code can use it. I think the >> DragNDropOutlineView demo shows how to do this. >

Re: Storing strings in code

2012-08-08 Thread Jean-Daniel Dupas
Le 8 août 2012 à 22:15, Rick Mann a écrit : > On Aug 8, 2012, at 12:58 , Leo wrote: > >> As I recently learned, plain strings are stored "as is" in the executable >> and can be discovered - if opening it in a text editor, for example. >> >> That is, if I have a string @"myString" inside the

Re: How make iPhone HOT (yes, increase the temperature)??

2012-08-08 Thread Alex Zavatone
As a side note, back in the Apple ][ days and in high school, we had a program that would regularly fry a chip on our graphics cards. Sometimes, the chip even exploded. I'm not sure that your pursuit is a great idea, but finding out how to max out the processor cores would drain the battery an

Re: Storing strings in code

2012-08-08 Thread Alex Zavatone
How much security do you want? If your strings are basic ASCII, then their value is ASCII 32 to 126. You can just bit shift the ASCII values (+128), store the ASCII value, or zip the strings. On Aug 8, 2012, at 4:37 PM, Jean-Daniel Dupas wrote: > > Le 8 août 2012 à 22:15, Rick Mann a écrit

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Kyle Sluder
On Wed, Aug 8, 2012, at 01:21 PM, Corbin Dunn wrote: > > On Aug 8, 2012, at 11:38 AM, Kyle Sluder wrote: > > Is there a reason that I shouldn't file a bug asking for clickedRow to > > be set as soon as the row is clicked? > > I just hadn't thought that people would have needed the clicked row >

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Corbin Dunn
On Aug 8, 2012, at 2:05 PM, Kyle Sluder wrote: > On Wed, Aug 8, 2012, at 01:21 PM, Corbin Dunn wrote: >> >> On Aug 8, 2012, at 11:38 AM, Kyle Sluder wrote: >>> Is there a reason that I shouldn't file a bug asking for clickedRow to >>> be set as soon as the row is clicked? >> >> I just hadn't

Re: +underPageBackgroundColor

2012-08-08 Thread Graham Cox
On 08/08/2012, at 7:46 PM, Uli Kusterer wrote: > Prefix/suffix them with gc_ / _gc ? Alternately, just define them in a .plist > and build your table from that, then you don't need to implement named > NSColor methods for them at all. > I have a table, that's not a problem. The SVG standar

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Graham Cox
On 09/08/2012, at 3:38 AM, Corbin Dunn wrote: > No it hasn't changed, but the clicked row is set *after* you return a menu. > That way your menu validation code can use it. I think the > DragNDropOutlineView demo shows how to do this. OKaaay I can figure it from the cell rect as suggest

Another NSOutlineView issue

2012-08-08 Thread Graham Cox
I've just noticed another odd behaviour of NSOutlineView. This is on 10.8 and I've never noticed this before, so it might be something new. When I click a turn-down triangle to open an outline item, all of the text draws in a slightly bigger font for the duration of the triangle's animation, th

NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Graham Cox
On 09/08/2012, at 9:10 AM, Graham Cox wrote: > Ah, I'm thinking this *could* be due to my previous observation about cells > being copied using NSCopyObject. If the cells are copied during that > animation for some reason, then perhaps the text settings for my custom cell > are not being copi

Re: +underPageBackgroundColor

2012-08-08 Thread Gary L. Wade
On Aug 8, 2012, at 3:23 PM, Graham Cox wrote: > The SVG standard defines 147 named colours: > http://www.december.com/html/spec/colorsvg.html > > I thought it would be a nice programmer convenience to have NSColor return > these colours using the same naming convention that it already uses fo

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Kyle Sluder
On Wed, Aug 8, 2012, at 02:48 PM, Corbin Dunn wrote: > Cool; note that with View Based TableViews these types of things are > easier to do, since one can just do normal "view stuff", and easily query > for what row they are in (via rowForView:) It does make it easier for subviews that want to perf

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Greg Parker
On Aug 8, 2012, at 4:21 PM, Graham Cox wrote: > On 09/08/2012, at 9:10 AM, Graham Cox wrote: >> Ah, I'm thinking this *could* be due to my previous observation about cells >> being copied using NSCopyObject. If the cells are copied during that >> animation for some reason, then perhaps the text

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Quincey Morris
On Aug 8, 2012, at 16:21 , Graham Cox wrote: > This opens up a whole big can of worms about implementing copy. > > If a superclass implements copies using NSCopyObject, then any pointer ivars > we add in a subclass need to be additionally -retained. But if the superclass > implements copy by a

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Graham Cox
On 09/08/2012, at 9:39 AM, Greg Parker wrote: > NSCopyObject() is ugly. Avoid it if you can. > > NSCell uses NSCopyObject. I don't know if there are other framework classes > that are likely to be copied and subclassed that use NSCopyObject. > > One solution is to compile your subclass with

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Greg Parker
On Aug 8, 2012, at 4:52 PM, Graham Cox wrote: > I see that NSCopyObject is deprecated as of 10.8 (but is still being used > internally). > > This is going to be fun moving forward :) I'm not sure how binary > compatibility is going to be maintained as NSCopyObject disappears, for > example, in

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Kyle Sluder
On Wed, Aug 8, 2012, at 04:52 PM, Graham Cox wrote: > I see that NSCopyObject is deprecated as of 10.8 (but is still being used > internally). > > This is going to be fun moving forward :) I'm not sure how binary > compatibility is going to be maintained as NSCopyObject disappears, for > example,

Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)

2012-08-08 Thread Graham Cox
On 09/08/2012, at 9:47 AM, Quincey Morris wrote: > It seems to me that you need to think of 'copyWithZone:' as a kind of 'init…' > method, and it should therefore *not* use properties to change the instance > variables that belong to the subclass, but change them directly. This is > actually

filtering the values in an NSTableColumn

2012-08-08 Thread Koen van der Drift
I'd like to filter the values in a table column based on values entered in two NSTextFields by the user (min and max). I tried to bind the Min Value and Max Value of the column to the NSTextField float value property, but that didn't change anything. I also created a min and max property in my

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Markus Spoettl
On 8/9/12 12:58 AM, Graham Cox wrote: NSCell apparently uses NSCopyObject() to make a copy of itself, and NSTableView copies cells at times, e.g. for hit testing. If you have a custom cell subclass that supports copying, DO NOT use [super copyWithZone:] followed by your custom copy stuff. Since s

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-08 Thread Markus Spoettl
On 8/9/12 8:14 AM, Markus Spoettl wrote: On 8/9/12 12:58 AM, Graham Cox wrote: NSCell apparently uses NSCopyObject() to make a copy of itself, and NSTableView copies cells at times, e.g. for hit testing. If you have a custom cell subclass that supports copying, DO NOT use [super copyWithZone:] f