Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-28 Thread Luke Hiesterman
It is a general design pattern of all of UIKit - not just UITableView - that delegate callbacks for user actions are not triggered when those same actions are done programmatically. If you’re going to file a bug, I suggest filing it on the entire UIKit design pattern. Luke On Feb 27, 2016, at

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
I’d check your return value for this method in your layout: - (UICollectionViewLayoutAttributes *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath *)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0); Luke On Mar 7, 2016, at 9:55 AM, Luther Baker mailto:lut

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
select the cell for moving ... so I'm not sure how to change the background color to "red" for instance. Would I have to add my own view to the superview and manually move it around in the dragging callbacks? Thanks! -Luther On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman ma

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
27;t think I'm looking at it correctly yet. Just in general I guess, how can a change to the layoutAttributes cause my CollectionViewDelegate and DataSources to fetch the cell I'm dragging around and change it (or does it not require the delegates or datasources ... ?) Thanks, -

Re: UITableView: combining row moves with insert/delete/reload in animation

2016-03-08 Thread Luke Hiesterman
If you’re getting asked to create a row at index 3 from that code snippet, then that looks like a UIKit bug. I’d advise filing it at bugreport.apple.com including a sample app showing that behavior. Luke > On Mar 8, 2016, at 11:26 AM, Jens Alfke wrote: > > I’m animating a UITableView in respo

Re: UITableView: combining row moves with insert/delete/reload in animation

2016-03-08 Thread Luke Hiesterman
Great. That sounds like the appropriate work-around. Luke On Mar 8, 2016, at 1:33 PM, Jens Alfke mailto:j...@mooseyard.com>> wrote: I was able to work around the problem by moving the reloadRows call to after -endUpdates. Of course I had to modify the row numbers to the post-insert/delete/mov

Re: UICollectionView Moving

2016-03-15 Thread Luke Hiesterman
ctionViewLayoutAttributes) { print("apply layout attributes!: \(titleLabel.text)") } Thanks Man! -Luther On Mon, Mar 7, 2016 at 11:54 PM, Luke Hiesterman mailto:luket...@apple.com>> wrote: By teaching a cell to respond to an attribute I merely meant that it should override

Re: UICollectionView parallax-like horizontal scrolling

2014-10-16 Thread Luke Hiesterman
There are multiple ways to skin this cat. One is to use two collection views and just modify the content offset of one of them in response to the scrolling of the other. The behavior can also be built into a layout if you want to use a single scroll view. You don’t need different types of cell

Re: UICollectionView not obeying zIndex of UICollectionViewLayoutAttributes

2015-08-06 Thread Luke Hiesterman
Can you post your implementations -layoutAttributesForElementsInRect: as well as -layoutAttributesForItemAtIndexPath:? Luke > On Aug 6, 2015, at 8:09 AM, Ted Bradley wrote: > > The effect I'm trying to achieve is a kind of sticky header cell. It's > important to me that the sticky cell floats

Re: iPhone NavController within TabBarController (nested table views)

2009-10-04 Thread Luke Hiesterman
Yes, you need a nav controller to be the view controller for one of your tabs. This case is explicitly covered in the iPhone programming guide at developer.apple.com. Check it out. Luke Sent from my iPhone. On Oct 4, 2009, at 3:27 PM, Trygve Inda wrote: My root view is a TabBarControll

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-07 Thread Luke Hiesterman
You want to have a view that scales to multiple lines, and you want that view to have a background. You further I desire said background to not scale. Am I missing something? That doesn't make sense. Luke Sent from my iPhone. On Nov 7, 2009, at 5:42 PM, Tharindu Madushanka wrote: Hi,

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-08 Thread Luke Hiesterman
Sounds like your main problem is not using a background that looks good with scaling. I suggest a new background. Luke Sent from my iPhone. On Nov 7, 2009, at 11:53 PM, Tharindu Madushanka wrote: Hi I have been currently doing something like this. In my chat view I have a scroll view

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-08 Thread Luke Hiesterman
s Tharindu Madushanka On Mon, Nov 9, 2009 at 12:36 AM, Luke Hiesterman wrote: ___ 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(at)list

Re: [iPhone] iPhone Screen with Add Photo and UITableView

2009-11-15 Thread Luke Hiesterman
What you see in Contacts is probably all in a tableHeaderView. Luke Sent from my iPhone. On Nov 15, 2009, at 2:40 AM, Tharindu Madushanka wrote: Hi I am trying to implement a screen in that it should have a table view, with add photo button and to right a table view cell. Could I do th

Re: How to change UITableView cell style dynamically

2009-11-21 Thread Luke Hiesterman
If you have 2 different styles of cells then you should have 2 different reuse identifiers. Then when you dequeue, you ask for an available cell of the apropeiate type. Luke Sent from my iPhone. On Nov 21, 2009, at 1:55 AM, Tharindu Madushanka wrote: Hi Removing reuse identifier solv

Re: How to change UITableView cell style dynamically

2009-11-21 Thread Luke Hiesterman
l add two types of cells. But since its only a single cell table, I thought there would not be any performance issue or something doing that. On Sat, Nov 21, 2009 at 8:01 PM, Luke Hiesterman wrote: If you have 2 different styles of cells then you should have 2 different reuse identifiers.

Re: UITextField Cursor Color

2009-11-22 Thread Luke Hiesterman
I don't think this is possible publicly, and non-public methods shouldn't be discussed here. Luke Sent from my iPhone. On Nov 21, 2009, at 10:25 PM, Chunk 1978 wrote: textfields in the iPhone SDK default to a blue color. i would like to change this color to white. i've checked the docs,

Re: Supporting different orientations with UITabBarView?

2010-04-17 Thread Luke Hiesterman
You should post some sample code of the tabBarController not autorotating. The behavior of the tabBarcontroller should definitely be to rotate if all of it's child viewViewControllers support rotation to the given orientation. Luke Sent from my iPad On Apr 17, 2010, at 3:56 PM, Laurent Daude

Re: Using table view cells from nibs

2010-05-29 Thread Luke Hiesterman
I'm not sure why you're trying to separate the ideas of row and cell height. I don't think there's any reason why you should ever attempt to have a cell whose height is different from the height returned in heightForRowAtIndexPath. In fact, you shouldn't even be setting cell frames yourself. The

Re: Question about fading a UISlider

2010-06-15 Thread Luke Hiesterman
You can try setting shouldRasterize = YES on the layer. Luke Sent from my iPhone. On Jun 15, 2010, at 6:08 AM, "Eric E. Dolecki" wrote: > I am animating the alpha of a UISlider, and you can see that the UI is > actual composed of two rounded rectangles with a round button above the > union po

Re: -[UITable indexPathsForRowsInRect:] returning bogus paths?

2011-08-18 Thread Luke Hiesterman
It sounds like you're getting the index path you expect, but you're just surprised that cellForRowAtIndexPath: with that index path returns nil when it's scrolled out of view. If I'm reading that correctly, then this is correct behavior. Note the comment in UITableView.h: - (UITableViewCell *)c

Re: Confused with block completionHandler

2011-08-24 Thread Luke Hiesterman
It looks like you've basically got it with your openPanel example. The only difference in the document example is that the parameter to the block is an NSError*. So, your call would look something like this: [self saveToURL:[self fileURL] ofType:@"myDocType" forSaveOperation:NSAutosaveInPlaceOp

Re: Animating a UITableViewCell changing size

2011-10-13 Thread Luke Hiesterman
You should never directly set the frame of a cell that is in the table view. Since UITableView automatically requiries and adjusts row heights when you do a begin/endUpdates block, performing an empty such block by itself after adjusting row heights in your model is sufficient to animate a chang

Re: -tableView:accessoryButtonTappedForRowWithIndexPath: Sometimes returns wrong indexPath.row

2011-11-11 Thread Luke Hiesterman
On Nov 11, 2011, at 12:35 PM, Michal L. Wright wrote: > Hi, > > I have a UITableView that has four sections. Sections 0 and 2 have a single > row each. Sections 1 and 3 have variable numbers of rows. > > Each row in sections 1 and 3 has an accessory view set up by the following > lines in -ta

Re: NSAssert with format string

2011-11-16 Thread Luke Hiesterman
> On Nov 16, 2011, at 11:38 AM, Luke Hiesterman wrote: > >> Yes, NSAssert now accepts varargs for formatted strings. >> >> Luke >> >> On Nov 16, 2011, at 11:33 AM, Matt Neuburg wrote: >> >>> The docs say that NSAssert takes a condition and

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Luke Hiesterman
Think about it simply. A cell gets deallocated just like any other object - when its retain count goes to zero. If you're looking for a cell getting deallocated on a non-main thread, you're looking for a place release is being called on a non-main thread. I would think you could just override th

Re: Custom UIView drawing but can't figure out when/where it's loading

2012-02-14 Thread Luke Hiesterman
-viewDidLoad is a method on UIViewController - it's not something that will get called on a UIView. If you have initialization code, you should override the default initializer, -initWithFrame:. Understanding the role of view controllers and views is an important thing to have as a foundation f

Re: Paging UITableView

2012-02-18 Thread Luke Hiesterman
Who/what told you that table views can't be in scroll views? It wouldn't play nicely with swipe to delete, but iOS generally supports nested scroll views (and a table view is just a special scroll view). Luke On Feb 18, 2012, at 8:58 PM, "R" wrote: > I understand that one is not suppose to em

Re: Reusable Cells

2011-02-02 Thread Luke Hiesterman
Welcome to the list and the platform, JD. The purpose of the cell reuse queue is so that we don't have to keep creating new cell objects as we scroll a table. We take advantage of the fact that as new cells are appearing, old cells are disappearing. Rather than throw the old cells away and creat

Re: animating addSubview with iOS4

2011-03-01 Thread Luke Hiesterman
You can only animate properties documented as "animatable". Try adding your subview to its superview with an alpha of 0.0 and then animating the alpha to 1.0. Luke On Mar 1, 2011, at 8:32 AM, Martin Linklater wrote: > Hi - I'm having trouble getting Core Animation to animate a UIButton > ap

Re: Adding subviews to UITableViewCell's contentView and autoresizing behavior

2011-03-03 Thread Luke Hiesterman
Flexible width means "change my width if my superview's width changes" and accessory views cause the contentView to shrink from its original state as the full width of the cell (since the contentView must make space for the accessoryView). Therefore, your subview auto shrinks with it since you s

Re: Adding subviews to UITableViewCell's contentView and autoresizing behavior

2011-03-03 Thread Luke Hiesterman
The strategy I recommend for anyone adding views to UITableViewCell is to subclass and implement layoutSubviews. You will then be able to easily set your subview frames as you desire for any orientation because layoutSubviews will be called on rotation. Luke On Mar 3, 2011, at 8:50 PM, Ray w

Re: Class UITableViewCellContentView is implemented in both and . One of the two will be used. Which one is undefined.

2011-04-08 Thread Luke Hiesterman
It means that UIKit now defines a class called UITableViewCellContentView and that collides with one of your classes. Objective C has this inherent weakness that if a class with the same name is implemented in more than one place, they fight for which one gets used. Since you can't change UIKit,

Re: UIPickerView

2011-04-25 Thread Luke Hiesterman
You probably want to display 1 picker at a time, with a way for the user to navigate from one to the other. See what happens if you go to this page on iOS and tap on one of the selection boxes. http://www.google.com/advanced_search Luke On Apr 25, 2011, at 11:47 AM, koko wrote: > I haven't fo

Re: Changing UISwitch text

2011-04-29 Thread Luke Hiesterman
Neither of those things are possible with UISwitch. You'd have to write your won UIControl subclass. Luke On Apr 29, 2011, at 4:29 PM, Jon Sigman wrote: > Is there a straightforward way to change the text on the UISwitch ("ON" and > "OFF") to something else? Alternatively, is there a way for a

Re: [iOS] What's the point of UISegementedControl.tintColor?

2011-06-15 Thread Luke Hiesterman
If you set it to a color that isn't black, you will be able to see a difference. Black behaves this way because selection is shown by making the button appear depressed, and therefore darker. You can't get darker than black, thus what you see. Luke On Jun 15, 2011, at 12:15 PM, Rick Mann wrote

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

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Luke Hiesterman
It sounds like you have a design problem if you want potentially large numbers of sections but it isn't easy to calculate the size of said sections. What are you really trying to do? Luke Sent from my iPhone. On Dec 17, 2009, at 8:01 PM, Karolis Ramanauskas wrote: Luke helped me with t

Re: [iPhone] Refreshing a UITableView in a UINavigationController...

2009-12-26 Thread Luke Hiesterman
Depends on what you want for your app. If you want the user to see the table data change then keep it the way it is. If you'd rather the change occur out of view use viewWillAppear: Luke Sent from my iPhone. On Dec 26, 2009, at 8:31 PM, Brian Bruinewoud wrote: Hi all, I have a naviga

Re: iPhone: question about orientation

2010-01-21 Thread Luke Hiesterman
UIViewcontroller with autorotation is the best way to do this. Then you don't need to deal with UIDevice orientations. Luke Sent from my iPhone. On Jan 21, 2010, at 8:30 AM, "Eric E. Dolecki" wrote: I am sending a view orientation data which works great, if the phone is held up... UI

Re: iPhone: question about orientation

2010-01-21 Thread Luke Hiesterman
Jan 21, 2010 at 12:17 PM, Luke Hiesterman wrote: UIViewcontroller with autorotation is the best way to do this. Then you don't need to deal with UIDevice orientations. Luke Sent from my iPhone. On Jan 21, 2010, at 8:30 AM, "Eric E. Dolecki" wrote: I am sending a view or

Re: Send files from iphone

2009-07-03 Thread Luke Hiesterman
Check out documentation on NSURLRequest and NSURLConnection. Luke Sent from my iPhone. On Jul 3, 2009, at 7:20 PM, Development wrote: I need to be able to upload the data from a UIImage to a server via http POST however I simply cannot find a good example of how to arrange the headers

Re: iPhone camera control like RedLaser

2009-07-08 Thread Luke Hiesterman
There is no API for that at this time. Luke Sent from my iPhone. On Jul 8, 2009, at 12:00 AM, Mike Manzano wrote: The RedLaser app overlays a display on the 3GS' video capture screen, and seems to be able to react to the video in real time. Are they using public APIs to do this? If so,

Re: [iPhone] Addressbook "group" problem

2009-07-11 Thread Luke Hiesterman
The group doesn't have a name when you create it. Try setting the name after creation rather than getting it. Luke Sent from my iPhone. On Jul 11, 2009, at 12:50 AM, James Lin wrote: Hi all, Anyone familiar with the Addressbook framework? I can't seem to be able to add a "group" into the

Re: UITextView and UiImageView

2009-07-11 Thread Luke Hiesterman
Try using a UIScrollView and adding various UITextViews and UIImageViews as subviews to the content view of the scrollview. It's a little tedious and depending on what you're doing a web view might be better. Hope that helps. Luke Sent from my iPhone. On Jul 11, 2009, at 3:24 AM, "M.S. H

Re: [iPhone] Addressbook "group" problem

2009-07-12 Thread Luke Hiesterman
y exists in the addressbook, is there a way to do this? the ABGroup documentation has no function that allows this... any suggestions? Thank you in advance... James On 2009/7/11, at 下午 9:36, Luke Hiesterman wrote: The group doesn't have a name when you create it. Try setting the name after

Re: Iphone Grouped Table View for Settings

2009-07-16 Thread Luke Hiesterman
Look at the table view programming guide for how to build custom table cells. Just think of each cell as a custom view. They can even be built in IB easily enough. Drag UITableViewCell objects into your nib and lay them out however you like. Luke Sent from my iPhone. On Jul 16, 2009, at 9

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Luke Hiesterman
Create a view based xib. In the generic view provided add all your custom views including a UITableView. Don't drag a UITableViewController - just the UITableView itself. Then be sure to set the table views data source and delegate outlets to one or two of your objects that will handle thos

Re: [iPhone] get iPhone's IP address...

2009-07-20 Thread Luke Hiesterman
Please note that NSHost is NOT publicly supported API on iPhone. Attempts to use it may result in unexpected behavior and broken applications in future iPhone revisions. Also, using private classes is a breach of the iPhone developer terms and conditions. Finally, using a private class such

Re: [iPhone] get iPhone's IP address...

2009-07-20 Thread Luke Hiesterman
I should also have mentioned that you should be able to get the functionality you need via CFHost. Luke Sent from my iPhone. On Jul 20, 2009, at 6:33 AM, Luke Hiesterman wrote: Please note that NSHost is NOT publicly supported API on iPhone. Attempts to use it may result in unexpected

Re: IPhone Textview question

2009-07-31 Thread Luke Hiesterman
I'd make sure your tester is using at least os 3.0. I seem to recall slow typing issues in 2.x Luke Sent from my iPhone. On Jul 31, 2009, at 9:20 PM, Development wrote: I'm working on an app and it is fairly large. well... maybe not it's about 1.1 megs. I save as much memory as I can b

Re: [iPhone] seeking advise on complex view design

2009-08-11 Thread Luke Hiesterman
Sounds like you know the percentages you want. Just get the superview's bounds and calculate your frames using percentages of those bounds. Update when orientation changes. Or have subviews auto resize. Luke Sent from my iPhone. On Aug 11, 2009, at 7:34 AM, Sean Kline wrote: Are you hav

Re: Problem with UITableView

2010-07-31 Thread Luke Hiesterman
Are you returning the same cell 4 times? That's not right. You're going to need 4 separate cell instances even if they are of the same class and layout. It sounds like you might be taking 1 cell instance out of a nib and returning that each time. Luke Sent from my iPhone. On Jul 31, 2010, at

Re: Relation of UIView layer to drawRect:

2010-08-24 Thread Luke Hiesterman
Adding a sublayer to self.layer works just like adding a subview to self. Sublayers are drawn on top of their superlayers. In this case the superlayer is your view, so the image in the sublayer will be rendered on top of whatever you draw in drawRect: Luke Sent from my iPhone. On Aug 24, 2010

Re: Question about UITableView and loading some XML

2010-09-22 Thread Luke Hiesterman
[tableView reloadData]; Luke Sent from my iPhone. On Sep 22, 2010, at 8:20 AM, "Eric E. Dolecki" wrote: > I have a view that contains a UITableView. I am loading an XML file and > parsing it, getting a list of names. I populate a NSMutableArray with those. > I want to stuff them into the table

Re: UITableView Custom Section Headers

2010-12-27 Thread Luke Hiesterman
On Dec 27, 2010, at 2:30 AM, ico wrote: > Hi, > I don't know if you have figured this out. I also want to know how to do the > customization > on the section part of the tableview, not the cell but the section part. I > want to put some > custom content including an image on my section header r

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Luke Hiesterman
viewDidLoad is called the first time the view property of the vc is accessed - that's when loading happens. There is no guarantee that the view is in a window at that time, and presenting a modal vc on a vc whose view is not in a window does not make sense. Perhaps viewDidAppear is what you were

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Luke Hiesterman
away. It should only be used when the problem and the purpose of the delayed perform are both well understood. Luke Sent from my iPad On Jan 16, 2011, at 6:46 PM, Matt Neuburg wrote: > On Sun, 16 Jan 2011 13:47:06 -0800, G S said: >> On Sun, Jan 16, 2011 at 11:47 AM, Luke Hie

Re: UITableViewCell and accessoryView

2011-01-26 Thread Luke Hiesterman
On Jan 26, 2011, at 6:17 AM, Hrishikesh Murukkathampoondi wrote: > > > In a UITableView when a cell is swiped a delete button appears and allows you > to delete the row. I want to change this behavior by putting up a different > button "Complete" that will perform a different action. > >

Re: UITableView: Delay select recognition

2011-01-27 Thread Luke Hiesterman
On Jan 27, 2011, at 7:14 AM, Phillip Mills wrote: > I would like to have either an action occur that's linked to a double-tap in > a UITableViewCell subclass *or* the action specified by the > ...didSelectRowAtIndexPath:... method of the owning UITableView, but not > both. I've encountered

Re: UIPickerView joy

2012-03-20 Thread Luke Hiesterman
Only the three heights you identified are supported. There isn't special sauce for getting around that, though enforcement wasn't always there in the past. Luke On Mar 20, 2012, at 1:05 PM, Alex Zavatone wrote: > I just noticed something lovely in iOS 4.x and UIPickerView related and am > look

Re: UITableView lazy instantiation question

2012-03-23 Thread Luke Hiesterman
If you use a UITableViewController, the controller automatically creates a UITableView instance and sets it to self.view. Luke On Mar 23, 2012, at 8:02 AM, Alex Zavatone wrote: > While working on practice coding exercises last night, I was trying what I > thought should be a simple project. I

Re: UITableView lazy instantiation question

2012-03-23 Thread Luke Hiesterman
lling super, you would not get a table view. Luke On Mar 23, 2012, at 8:38 AM, Alex Zavatone wrote: > > On Mar 23, 2012, at 11:24 AM, Luke Hiesterman wrote: > >> If you use a UITableViewController, the controller automatically creates a >> UITableView instance and sets it to s

Re: UITabBars and UITableViews

2012-04-05 Thread Luke Hiesterman
You want to start with a UITabBarController instance, and then make the view controller associated with a give tab be a UINavigationController instance. That navigation controller's rootViewController will be a UITableViewController. Then when you push a new view controller, it will be in the n

Re: Resizing UITableView will keeping content scrolled to bottom

2012-04-16 Thread Luke Hiesterman
On Apr 16, 2012, at 4:09 PM, Rick Mann wrote: Hi. I'm implementing a messaging UI similar to the one found in Messages. In that app, when you focus on the input field, the keyboard pops up, and the input field scoots up as the keyboard comes up. The conversation history area resizes to make ro

Re: Resizing UITableView will keeping content scrolled to bottom

2012-04-17 Thread Luke Hiesterman
nimation in the process. In fact, UITableViewController does this automatically for table views that it manages. Hope that helps. Luke On Apr 16, 2012, at 6:27 PM, Rick Mann wrote: Er, for reference, the view hierarchy is this: http://latencyzero.com/stuff/ViewHierarchy.png On Apr 16, 2012,

Re: UIDocument and non-thread-safe Model

2012-05-27 Thread Luke Hiesterman
Yes, in the simple case, you as the client only implement contentsForType: and loadFromContents:error:, which are both main thread hooks and you never need to worry about threading. You, the original poster, are correct in your observation that there is no support for a synchronous saving model

Re: UIDocument and non-thread-safe Model

2012-05-27 Thread Luke Hiesterman
You want to override contentsForType:. That is the main thread hook. This is discussed in http://developer.apple.com/library/ios/DOCUMENTATION/DataManagement/Conceptual/DocumentBasedAppPGiOS/Introduction/Introduction.html Luke On May 27, 2012, at 4:15 PM, "Manfred Schwind" mailto:li...@mani.de

Re: UITableView woes

2012-07-02 Thread Luke Hiesterman
If you want something potentially scrollable, you want a UITextField. And if you're using custom sub views then you should also be defining a custom UITableViewCell subclass. So yes, time to subclass and write custom stuff. Luke On Jul 2, 2012, at 1:49 PM, C.W. Betts wrote: > I'm trying to wri

Re: Profound UITableView rendering-performance problem, but only at certain positions?

2012-07-23 Thread Luke Hiesterman
On Jul 23, 2012, at 2:03 PM, Gavin Stokes wrote: On Mon, Jul 23, 2012 at 8:16 AM, Fritz Anderson mailto:fri...@manoverboard.org>>wrote: I think the first problem you should concentrate on should be the multiply-overlaid drawings. It's hard to tell what's going on unless you share some code, or

Re: Profound UITableView rendering-performance problem, but only at certain positions?

2012-07-23 Thread Luke Hiesterman
On Jul 23, 2012, at 4:34 PM, Gavin Stokes wrote: Though probably off topic, this is unnecessary work. If you just want to change where your arrow is pointing, you should reach into the cells and change the position of the arrow - you shouldn't be doing a reload for that. Think something more l

Re: Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:

2012-08-22 Thread Luke Hiesterman
You need to read the actual exception message. It's almost certainly telling you that the number of rows in the dataSource is different than what's expected based on the updates you've made. Luke On Aug 21, 2012, at 11:49 PM, "Laurent Daudelin" wrote: > iOS 5.0 simulator or device. > > Whe

Re: UIDocument openWithCompletionHandler: called on what thread?

2012-09-03 Thread Luke Hiesterman
The documentation isn't entirely accurate. The completion handler will only be executed on the main queue if you call the method on the main queue. In general, the completion handler is executed on the same queue that the constituent method was called on. Luke On Sep 3, 2012, at 6:29 AM, "Rol

Re: is this possible in iOS with constraints?

2012-11-02 Thread Luke Hiesterman
Cells are sized according to the value returned from heightForRowAtIndexPath:. You could theoretically call sizeToFit: on a cell you create inside that method to get a height, but it would be very expensive to create a cell for every call to this method. One technique you might try is to create

Re: is this possible in iOS with constraints?

2012-11-02 Thread Luke Hiesterman
UITableViewCell doesn't currently support autolayout, so no, you won't be able to have the constraints system calculate the height for you. Luke On Nov 2, 2012, at 10:10 AM, Matt Neuburg wrote: > > On Nov 2, 2012, at 9:03 AM, Luke Hiesterman wrote: > >> Cells a

Re: is this possible in iOS with constraints?

2012-11-02 Thread Luke Hiesterman
On Nov 2, 2012, at 10:22 AM, Matt Neuburg wrote: > > On Nov 2, 2012, at 10:14 AM, Luke Hiesterman wrote: > >> UITableViewCell doesn't currently support autolayout > > I guess I'm having a little trouble understanding what that means. I am > placing co

Re: Coordinating animation of layers with a UIView animation

2012-11-06 Thread Luke Hiesterman
After setting up your UIView animation, you can introspect the animation timing by looking at the respective view's layer.animations. Your can then apply that animation to your sublayer. For bonus points, just start using a subview instead of a sublayer :) Luke On Nov 6, 2012, at 5:09 AM, "Ro

Re: FileWrapper & iCloud

2012-11-10 Thread Luke Hiesterman
File wrappers don't make it inherently easier or harder to deal with iCloud. File packages (which you would use file wrappers to represent) can be elegant means of wrapping up document data because it allows for easy separation of distinct components, and are usually recommended if they at all m

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luk

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
ng, drive it (move it > around) with touch while maintaining normal operation of the UITableView. > > > > Google Voice: (508) 656-0622 > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > Imagineric > > > On Thu, Dec 20, 2012 at 1:55 PM

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
cognizers Luke On Dec 20, 2012, at 11:28 AM, "Eric E. Dolecki" wrote: > over time though or only when it's triggered? > > > > Google Voice: (508) 656-0622 > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > Imagineric > >

Re: Map and Contacts Icons on iOS?

2013-02-01 Thread Luke Hiesterman
Nope. Luke On Feb 1, 2013, at 5:15 AM, Dave wrote: > Hi All, > > On iOS, is it possible to grab the Icons/Images for the Map and Contacts Apps > somehow from the OS? > > Thanks a lot > Dave > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Map and Contacts Icons on iOS?

2013-02-01 Thread Luke Hiesterman
rter to remove Apple's PNG munging. > > If you have the app, you can get the images. > > Sent from my iPhone > > On Feb 1, 2013, at 12:01 PM, Luke Hiesterman wrote: > >> Nope. >> >> Luke >> >> On Feb 1, 2013, at 5:15 AM, Dave >>

Re: UITableView disabled scrolling Cell selection

2013-03-11 Thread Luke Hiesterman
If you want the behavior of a series of buttons, I'd have a series of buttons. Table view cells simply don't behave like buttons. If it makes it easier for you, it might make sense to put buttons inside table view cells. Luke On Mar 11, 2013, at 4:38 AM, "Ben" wrote: > Hi, > > I have a UIT

Re: Design Guidance

2013-03-23 Thread Luke Hiesterman
I preach option 1. I don't know what the adoption rate of iOS 6 is these days, but it was 60% of all iPhones within two weeks of launch*, I'd venture it's around 90+% nowadays. Moreover I think the set of people who don't update their OS probably has a decent percentage of people who won't updat

Re: Design Guidance

2013-03-23 Thread Luke Hiesterman
The asterisk is there because I meant to cite my source: http://www.zdnet.com/60-percent-of-iphones-now-running-ios-6-report-705169/ Luke On Mar 23, 2013, at 11:35 AM, Luke the Hiesterman wrote: > I preach option 1. I don't know what the adoption rate of iOS 6 is these > days, but it was

Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Luke Hiesterman
I wouldn't put too much stock in the link you reference. Many of the statements made are simply wrong, and there are better strategies. In general, if you want to put custom stuff in a cell, you should do it by adding views - like labels, image views, etc. Only if you find a scrolling performan

Re: Which language to get started with cocoa development?

2009-01-05 Thread Luke Hiesterman
If you truly want do cocoa you should learn objective-c. That is the flagship language. Shouldn't be too difficult for a professional programmer to pick up. Luke Sent from my iPhone. On Dec 31, 2008, at 12:22 AM, Achim Domma wrote: Hi, I develop software for a living and want to get sta

Re: Autorelease Question

2008-11-20 Thread Luke Hiesterman
So thinking gets in the way of understanding and not thinking is the path to enlightenment? Sent from my iPhone. On Nov 20, 2008, at 8:45 PM, Jim Correia <[EMAIL PROTECTED]> wrote: On Nov 20, 2008, at 11:36 PM, Kiel Gillard wrote: On 21/11/2008, at 2:55 PM, Adam Leonard wrote: I think

Re: Beginner memory management question

2008-12-03 Thread Luke Hiesterman
What you should do is declare newName as a property and then do self.newName = [stockName stringValue]; The synthesized property will take care of retaining and releasing for you. Luke Sent from my iPhone. On Dec 3, 2008, at 2:13 AM, Jacob Rhoden <[EMAIL PROTECTED]> wrote: I am not sure

Re: self = [super init];

2008-12-03 Thread Luke Hiesterman
What makes you think that it would? Sent from my iPhone. On Dec 3, 2008, at 11:14 AM, EVS <[EMAIL PROTECTED]> wrote: self = [super init]; Why does the above line of code not cause a memory leak or memory fault? ___ Cocoa-dev mailing list (Coco

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Luke Hiesterman
The compiler must be able to resolve the class for dot syntax to work. Try casting. Luke Sent from my iPhone. On Dec 5, 2008, at 4:32 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that

Re: iPhone Orientation

2008-12-08 Thread Luke Hiesterman
The UIKit changes orientation for you if you respond YES to shouldAutoRotateToOrientation which is part of UIViewController. Luke Sent from my iPhone. On Dec 6, 2008, at 9:19 AM, Bruce Martin <[EMAIL PROTECTED]> wrote: I'm not sure this is the right list but a search in the Archives return

Re: Newbie Q: Why is UIWindow in the AppDelegate not an ivar?

2008-12-13 Thread Luke Hiesterman
Generally speaking you will do well for yourself to follow Apple's example over Erica's. I haven't actually read her book but I've had several examples come to my attention of where she doesn't do things in the best way. Erica is a talented hacker but please get in the habit of following

Re: Help, I need a jedi memory master with time and patience to help me here.

2009-03-12 Thread Luke Hiesterman
My guess is it's not really a memory issue. I'll glance at it for you, though. Luke Sent from my iPhone. On Mar 12, 2009, at 8:11 AM, James Cicenia wrote: Hello - I must be doing something conceptually wrong as this class will alway kill my app in the device without any console info. I

Re: Grouped table view appearance in iOS 7

2013-09-22 Thread Luke Hiesterman
You'd have to implement a custom backgroundView and selectedBackgroundView with rounded lines to get that look. Assuming you're talking about Settings on iPad. Luke > On Sep 22, 2013, at 1:27 PM, "Rick Mann" wrote: > > Has anyone figured out how to get the grouped table view appearance in iO

Re: -hitTest:withEvent: called twice?

2014-02-10 Thread Luke Hiesterman
Yes, it’s normal. The system may tweak the point being hit tested between the calls. Since hitTest should be a pure function with no side-effects, this should be fine. Luke On Feb 10, 2014, at 2:50 PM, Rick Mann wrote: > I'm seeing -hitTest:withEvent: called twice for a single touch. The stac

Re: UICollectionViewCell and UIScrollView and autolayout

2014-05-26 Thread Luke Hiesterman
Why is autolayout assigning a frame to the cell? Are you putting autolayout constraints on your cell? If so, shouldn’t be. The collection view assigns the cell’s frame (according to the wishes of the assigned collectionViewLayout). Setting the frame yourself, either by calling -setFrame or somet

Re: UICollectionViewCell and UIScrollView and autolayout

2014-05-26 Thread Luke Hiesterman
te: I am not assigning a frame - but I am indeed assigning constraints to the subviews of the UICollectionViewCell's content view: https://github.com/tcurdt/paging-and-zooming/blob/master/Paging/TCPagingView.m#L17 That is not supported? cheers, Torsten On Mon, May 26, 2014 at 5:59 PM, Luke

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Luke Hiesterman
You have to set the frame yourself (before assigning to the tableView.tableFooterView) property. You can use autolayout and systemSizeFittingSize to get the appropriate size, but you have to apply it yourself. Luke On Jun 11, 2014, at 11:16 AM, Torsten Curdt wrote: > My question really isn't

  1   2   >