UIScrollView Sizing

2010-04-27 Thread Bob Barnes
Hi, I have a UIScrollView that can contain a variable number of other UIViews (UILabels, UIImageViews, etc), but I'm confused as to how to manage the UIScrollView contentSize given the variability in the number of views it will contain. I'd like to use IB to create my view, but is this

Re: [iPhone] custom CALayer drawing

2010-02-11 Thread Bob Barnes
Have you tried calling setNeedsDisplay on the view? You need to request that a view redraw when the data or state used for drawing a view changes. Bob On Feb 11, 2010, at 3:44 PM, PCWiz wrote: > I'm trying to do some custom drawing in a CALayer subclass by overriding the > drawInContext: met

Re: Analyzer Questions

2010-02-02 Thread Bob Barnes
id Duncan wrote: > On Feb 2, 2010, at 11:58 AM, Bob Barnes wrote: > >> I've recently upgraded to Mac OS X 10.6.2 in order to run the Analyzer for >> Xcode and it's pointing out some potential memory leaks that really have me >> confused. A typical example is whe

Analyzer Questions

2010-02-02 Thread Bob Barnes
Hi all, I've recently upgraded to Mac OS X 10.6.2 in order to run the Analyzer for Xcode and it's pointing out some potential memory leaks that really have me confused. A typical example is where I have a method that allocates and returns something like a CGPDFDocumentRef or CGContextRef. Th

Re: CALayer subclass allocation problem

2009-11-10 Thread Bob Barnes
Kyle, Good ideas, but the static analyzer is Xcode 3.2, which requires 10.6 I believe. I'm still running 10.5. Bob On Nov 10, 2009, at 1:30 PM, Kyle Sluder wrote: On Nov 10, 2009, at 12:57 PM, Bob Barnes wrote: hi all, My iPhone app has 2 subclasses of CALayer that appe

CALayer subclass allocation problem

2009-11-10 Thread Bob Barnes
hi all, My iPhone app has 2 subclasses of CALayer that appear as leaked objects when I run Instruments. In an effort to understand why I inserted calls to retainCount when allocating these objects. After calling alloc the reference count on my objects is 0, but after calling the init m

Re: UITextField in UITableView covered by keyboard

2009-10-24 Thread Bob Barnes
, 2009, at 4:31 PM, Henry McGilton (Boulevardier) wrote: On Oct 23, 2009, at 10:29 AM, Bob Barnes wrote: Hi all, I posted this a yesterday, but it never appeared on the list and it's not showing up in the web archive so I thought I'd retry. I have a UITableView that contains some

Re: UITextField in UITableView covered by keyboard

2009-10-24 Thread Bob Barnes
Greg, The sample code is Apple's UICatalog and my view controller IS a subclass of UITableViewController. What's making this so frustrating is that it should just work according to everything I've read, at least in 3.0+. There are some subtle differences between my code and the sample

UITextField in UITableView covered by keyboard

2009-10-23 Thread Bob Barnes
Hi all, I posted this a yesterday, but it never appeared on the list and it's not showing up in the web archive so I thought I'd retry. I have a UITableView that contains some cells with UITextField's embedded in them. When I touch the UITextField to begin editing the keyboard pops u

UITableView scrolling & keyboard

2009-10-22 Thread Bob Barnes
Hi all, Apple's UICatalog sample iPhone app has a view demonstrating various styles of UITextFields and when one of the text fields is selected the table view scrolls the view if necessary to keep the chosen UITextField visible above the keyboard. I'd like to have the same capability

UINavigationBar tintColor property

2009-10-21 Thread Bob Barnes
hi all, I'm using the UINavigationBar tintColor property to modify the color of navigation bars and that works fine except that the backItem doesn't change color until it's touched (even if the touch doesn't result in a tap) or I navigate back. Anyone have any suggestions on what to 'po

Re: [iPhone] WebView and problem with rotation

2009-10-07 Thread Bob Barnes
Bartosz, It's a little difficult to know for sure without seeing your code, but your comment that "I change a size of webview" makes me a bit suspicious that you're not letting autoresizing do the work for you. I have an app that uses a webview to display a pdf and it resizes properly

Re: Provisioning Question

2009-10-01 Thread Bob Barnes
Yes, I realize it's off-topic and I did try to post on the iPhone development forum, but I keep getting an error trying to create an account. On Oct 1, 2009, at 12:45 PM, I. Savant wrote: On Oct 1, 2009, at 3:38 PM, Bob Barnes wrote: I've generated the appropriate certif

Provisioning Question

2009-10-01 Thread Bob Barnes
I've generated the appropriate certificates and created a provisioning profile (development) that is generic, i.e., uses the wild-card character. The provisioning profile does NOT include either APNS or In App Purchase, but when I load the app onto the iPod Touch an entry is added under

Re: Suggestions for debugging “EXC_BAD _ACCESS” - followup

2009-09-29 Thread Bob Barnes
Nick, Thanks, I suspected as much. Bob On Sep 29, 2009, at 3:27 PM, Nick Zitzmann wrote: On Sep 29, 2009, at 4:18 PM, Bob Barnes wrote: I wanted to follow up my email from last week with some additional questions about the leaks instrument and what it is or isn't trying to te

Suggestions for debugging “EXC_BAD_ACCES S” - followup

2009-09-29 Thread Bob Barnes
all, I wanted to follow up my email from last week with some additional questions about the leaks instrument and what it is or isn't trying to tell me. When running the leaks instrument with NSZombieEnabled several lines of the following code are flagged as leaked memory... NSStrin

Re: Suggestions for debugging “EXC_BAD _ACCESS” [SOLVED]

2009-09-25 Thread Bob Barnes
and then later released it without ever having retained it. I'm concluding (perhaps incorrectly) that using buttonWithType: doesn't grant 'object ownership' in the same way that alloc does. Bob On Sep 25, 2009, at 12:36 PM, Greg Parker wrote: On Sep 25, 2009, at 12:14

Suggestions for debugging “EXC_BAD_ACCES S”

2009-09-25 Thread Bob Barnes
all, My iPhone app has a UIView subclass that uses a number of CALayer objects. In normal operation the app works fine, but in low memory conditions (either real or simulated) I'm getting a "EXC_BAD_ACCESS" failure and I suspect it's related to my use (or misuse) of CALayer's. I've be

Re: iPhone Segmentation Fault

2009-09-18 Thread Bob Barnes
9, at 2:57 PM, Bob Barnes wrote: all, My iPhone app is reporting a segmentation fault when terminating (only on the real device, not in the simulator) and also reporting a bad file descriptor. Anyone have any idea what the message is trying to tell me or how to find out. It occurs afte

iPhone Segmentation Fault

2009-09-18 Thread Bob Barnes
all, My iPhone app is reporting a segmentation fault when terminating (only on the real device, not in the simulator) and also reporting a bad file descriptor. Anyone have any idea what the message is trying to tell me or how to find out. It occurs after the call to dealloc has completed.

Re: UITabBarController Confusion

2009-08-11 Thread Bob Barnes
ted in changing this behavior, you'll want to subclass UITabBarController. Luke On Aug 11, 2009, at 9:56 AM, Bob Barnes wrote: Hi all, I have an app with 3 primary views, 2 of which are table views when in portrait mode, but display as full screen coverflow style in landscape mode. I

UITabBarController Confusion

2009-08-11 Thread Bob Barnes
Hi all, I have an app with 3 primary views, 2 of which are table views when in portrait mode, but display as full screen coverflow style in landscape mode. I originally created a 3rd table view to serve as the initial view as a way to get to the 3 main views with the intent I would mig

Re: [iPhone] Zooming & Dragging a PDF Inside a UIScrollView

2009-05-22 Thread Bob Barnes
could be moved. Bob On May 22, 2009, at 11:19 AM, Dave Camp wrote: If all you want to do is display a PDF, just use a UIWebView. It will display the PDF just like Safari with scrolling and whatnot and handle everything for you. Dave On May 22, 2009, at 10:35 AM, Bob Barnes wrote: Hi, I&#

[iPhone] Zooming & Dragging a PDF Inside a UIScrollView

2009-05-22 Thread Bob Barnes
Hi, I'm new to both Cocoa and iPhone so perhaps I've taken on something too complicated for a beginner, but I'm trying to display a PDF in a UIScrollView so that I can zoom/drag, etc. I've created a view hierarchy with a main UIView (probably should be a UIViewController, but that's an

Re: Newbie CALayer Questions

2008-07-22 Thread Bob Barnes
On Jul 21, 2008, at 12:06 PM, David Duncan wrote: On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote: On 21-Jul-08, at 10:48 AM, Bob Barnes wrote: I hadn't considered that but I cut and pasted it directly from the documentation. - (void)drawInContext(CGContextRef)ctx {

Re: Newbie CALayer Questions

2008-07-22 Thread Bob Barnes
On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote: On 21-Jul-08, at 10:48 AM, Bob Barnes wrote: I hadn't considered that but I cut and pasted it directly from the documentation. - (void)drawInContext(CGContextRef)ctx { NSLog(@"drawInContext called"); } that sho

Re: Newbie CALayer Questions

2008-07-21 Thread Bob Barnes
On Jul 20, 2008, at 10:43 PM, Scott Anguish wrote: that shouldn't be an issue if he's explicitly calling the setNeedsDisplay is the method signature correct on your implementation of drawInContext:? On 21-Jul-08, at 12:22 AM, Brian Christensen wrote: On Jul 20, 2008, at

Re: Newbie CALayer Questions

2008-07-21 Thread Bob Barnes
On Jul 20, 2008, at 9:22 PM, Brian Christensen wrote: On Jul 20, 2008, at 20:00, Bob Barnes wrote: I have some questions related to CALayer drawing. I want to be able to display images, text, 2D graphics or a PDF page. I'm able to display an image by directly setting the contents pro

Re: Newbie CALayer Questions

2008-07-20 Thread Bob Barnes
On Jul 20, 2008, at 5:06 PM, Jens Alfke wrote: On 20 Jul '08, at 5:00 PM, Bob Barnes wrote: I have some questions related to CALayer drawing. I want to be able to display images, text, 2D graphics or a PDF page. I'm able to display an image by directly setting the contents prop

Newbie CALayer Questions

2008-07-20 Thread Bob Barnes
hi, I have some questions related to CALayer drawing. I want to be able to display images, text, 2D graphics or a PDF page. I'm able to display an image by directly setting the contents property using a CGImageRef or subclassing CALayer, overriding display and sending setNeedsDisplay, but