Re: UICollectionView Moving

2016-03-15 Thread Luke Hiesterman
*)targetIndexPathForInteractivelyMovingItem:(NSIndexPath *)previousIndexPath withPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0); Luke On Mar 9, 2016, at 5:58 AM, Luther Baker mailto:lutherba...@gmail.com>> wrote: Ok - I think this is the final question. I've created a layout that is essentially

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/

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 UITab

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
By teaching a cell to respond to an attribute I merely meant that it should override setLayoutAttributes: and do something in there with the relevant property. Hope that helps. Luke On Mar 7, 2016, at 9:39 PM, Luther Baker mailto:lutherba...@gmail.com>> wrote: > teach your cell c

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
You can create your own subclass of UICollectionViewLayoutAttributes and add something like an “isMoving” property to that. Then teach your cell classes to respond to that property by changing the background color. Luke On Mar 7, 2016, at 11:44 AM, Luther Baker mailto:lutherba...@gmail.com

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

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 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 m

Re: UICollectionView parallax-like horizontal scrolling

2014-10-16 Thread Luke Hiesterman
the positions of the layout attributes for all the items in the right hand column based on some math relative to the content offset. This would accomplish updating the frames of the right hand column cells every frame that a scroll occurs and achieve the parallax effect. Luke > On Oct 15, 2

Re: Animating UICollectionViewCell selection

2014-06-23 Thread Luke Hiesterman
in setSelected: being called in animation block. Luke On Jun 23, 2014, at 4:00 PM, Rick Mann wrote: > Why is there no -[UICollectionViewCell setSelected:animated]? UITableViewCell > has this. > > But the real problem seems to be that when iOS is handling UICollectionView > cel

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 rea

Re: UICollectionViewCell and UIScrollView and autolayout

2014-05-26 Thread Luke Hiesterman
That is fine, but the statement made in your original email said “autolayout has assigned a frame to the cell.” You’re free to use autolayout inside the content view - just don’t try to layout the cell itself. Luke On May 26, 2014, at 9:07 AM, Torsten Curdt mailto:tcu...@vafer.org>> wro

Re: UICollectionViewCell and UIScrollView and autolayout

2014-05-26 Thread Luke Hiesterman
something that will affect frame on your behalf, such as using autolayout constraints, or autoresizing masks on the cell is unsupported. Luke On May 26, 2014, at 8:00 AM, Torsten Curdt mailto:tcu...@vafer.org>> wrote: autolayout has assigned a frame to th

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 to

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 gro

Re: UIDocument + NSFileWrapper crashes on opening

2013-06-20 Thread Luke the Hiesterman
By default, UIDocument does eager reading. You can override that in -readFromURL:error:. Luke On Jun 20, 2013, at 2:37 PM, Markus Spoettl wrote: > On 6/20/13 11:16 PM, Luke the Hiesterman wrote: >> Probably exactly as you said. Try overriding -readFromURL:error: to >> implem

Re: UIDocument + NSFileWrapper crashes on opening

2013-06-20 Thread Luke the Hiesterman
Probably exactly as you said. Try overriding -readFromURL:error: to implement incremental reading. Luke On Jun 20, 2013, at 2:01 PM, Markus Spoettl wrote: > Hello everyone, > > I have an iOS 6 app that uses UIDocument to implement loading and saving of > my app's data.

Re: UITableCellView width decreases when scrolling

2013-04-16 Thread Luke the Hiesterman
I'm guessing you need to call [self setNeedsDisplay] in the implementation of -[MyCustomView setObject:] Luke On Apr 16, 2013, at 11:25 AM, Koen van der Drift wrote: > > On Apr 15, 2013, at 7:20 AM, Koen van der Drift > wrote: > >> The reason I was using drawRect i

Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Luke Hiesterman
the appropriate way for highlighting (white text and whatever other changes you'd need). UITableViewCell will call setHighlighted: on your view at the appropriate time and there's no need to setup custom animation hooey. Luke On Apr 14, 2013, at 8:43 PM, Koen van der Drift mailto:koen

Re: UICollectionViewCell

2013-04-11 Thread Luke the Hiesterman
Yep, you want to use registerNib:forCellWithReuseIdentifier: If you register a class we just alloc/init it for you. Luke On Apr 11, 2013, at 7:24 PM, koko wrote: > > On Apr 11, 2013, at 8:23 PM, Luke the Hiesterman wrote: > >> How are you registering the reuseIdentif

Re: UICollectionViewCell

2013-04-11 Thread Luke the Hiesterman
How are you registering the reuseIdentifier? Do you use registerClass or registerNib? Luke On Apr 11, 2013, at 7:10 PM, koko wrote: > I have subclassed UICollectionViewCell as Cell and defined a property: > > @property (nonatomic, strong) IBOutlet UIImageView *imageView; >

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 > d

Re: Design Guidance

2013-03-23 Thread Luke Hiesterman
of people who won't update to the new version of your app either…..so I don't feel like you're losing a lot by standardizing on iOS 6. Luke On Mar 23, 2013, at 11:29 AM, koko wrote: > … or maybe Divine Guidance. > > > I have an iPad project that requires a collection

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:

Re: UI_APPEARANCE_SELECTOR question

2013-02-08 Thread Luke the Hiesterman
Appearance customizations get applied at layout time, so your view simply hasn't had the appearance applied yet in -initWithFrame:. That's why self.tabFont is nil. Luke On Feb 8, 2013, at 1:38 PM, Alex Kac wrote: > Trying to see if I understand this correctly and what I may b

Re: Map and Contacts Icons on iOS?

2013-02-01 Thread Luke Hiesterman
apps, each with different icons. The calculator app changed its icon. The Youtube app went away entirely. It's just not a good idea. Luke On Feb 1, 2013, at 9:11 AM, Alex Zavatone wrote: > Yup. You can pull them from the simulator, then pass the PNG files through an > open source conve

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 > > ___ > >

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
You can call the method at any time, but you'd probably just call it from your gesture handler which will fire for UIGestureRecognizerStateChanged as the touch moves. I'd suggest reading up on UIGestureRecognizer. It's a valuable class. Event Handling Guide for iOS: Gesture Re

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
-[UIGestureRecognizer locationInView:] will give you the touch location. Luke On Dec 20, 2012, at 11:00 AM, "Eric E. Dolecki" wrote: > I need to continually get the touch point though... In essence I'd like to > place a UIImageView (of a touch ring) above everythi

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
tures. Luke On Dec 20, 2012, at 10:40 AM, "Eric E. Dolecki" wrote: > Greetings all, > > I have the need for getting the touch position for a UITableView. I > subclassed UITableView and override the touches methods. Like so: > > - (void)touchesBegan:(NSSet *)t

Re: FileWrapper & iCloud

2012-11-10 Thread Luke Hiesterman
t all make sense for your application. There's some discussion about when it makes sense to use file packages in the WWDC session: http://developer.apple.com/itunes/?destination=adc.apple.com.16351493766 Luke On Nov 10, 2012, at 9:00 AM, "Brad Stone" mailto:cocoa-...@softrap

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:

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: 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
a static cell that you use for every call to heightForRowAtIndexPath:. You just dump your new label contents in there for each row and sizeToFit. Luke On Nov 2, 2012, at 8:07 AM, Matt Neuburg wrote: > Okay, I have this wild and crazy idea. I've got a UITableView with cells that

Targeting actions/methods on selected object in NSObjectController

2012-09-13 Thread Luke Evans
dListItem So, in a nutshell, what I'm asking is whether there's a nice way to connect to an action method within an NSObjectController from my button action. Perhaps the Target binding _is_ the only way this is supposed to work directly in this sort of scenario? -- Luke _

NSComboBox with NSNumberFormatter DataSource works but not Content binding

2012-09-13 Thread Luke Evans
the meantime, I have a workaround in the way of a DataSource. But I'm sad. I like binding things. -- Luke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

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:

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: >

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

2012-07-23 Thread Luke Hiesterman
uing a reload which, at a minimum, must create/dequeue new cells. Luke ___ 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)lists

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

2012-07-23 Thread Luke Hiesterman
ant 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 like for (UITableViewCell* cell in [tableView visibleCells]) {cell.thumbImageView.transform = TRANSFORM_CALCULATIO

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

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"

Re: UIDocument and non-thread-safe Model

2012-05-27 Thread Luke Hiesterman
model. This is by design. Applications are encouraged to support iCloud storage, and in an iCloud world, reads and writes can block for indeterminate amounts of time. So, we don't want to encourage anyone to build I/O into the main thread. Luke On May 27, 2012, at 3:50 PM, "Mik

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: Resizing UITableView will keeping content scrolled to bottom

2012-04-16 Thread Luke Hiesterman
o capture some things in an animation. But that discussion is orthogonal to your stated goal, which can be achieved by following the sample I've provided above. Luke -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com<mailto:C

Re: UITabBars and UITableViews

2012-04-05 Thread Luke Hiesterman
the navigation controller which is contained by the tab bar controller, and the tab bar stays on screen. Luke On Apr 5, 2012, at 3:22 PM, Alex Zavatone wrote: > Hi. I'm trying to get a GUI with a UITabBar and UITableViews set up. > > I've got a UITabView that is programmat

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: 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 p

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 r

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 tha

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

2012-02-14 Thread Luke Hiesterman
.html Luke On Feb 14, 2012, at 4:48 PM, William Squires wrote: > In my sample project, I've got > > TestView.h > TestView.m > RBTestView.h > RBTestView.m > AppDelegate.h > AppDelegate.m > ViewController.h > ViewController.m > ViewController.xib > > A

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Luke Hiesterman
t override the dealloc method to help you track this situation in the debugger. Perhaps add an NSAssert([NSThread isMainThread], @"wups"); in there. Luke On Jan 23, 2012, at 11:38 AM, Laurent Daudelin wrote: > Hello. > > I'm trying to track a crash in our app where we

Re: NSAssert with format string

2011-11-16 Thread Luke Hiesterman
On Nov 16, 2011, at 11:40 AM, Matt Neuburg wrote: > Luke: > > (1) Thx! > > (2) Any memory of when that happened? Just curious, no biggie. Snow Leopard for OS X. I think iOS 4 in my land. > > (3) Want me to file a bug on the docs? Go for it. Luke > > m. >

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

2011-11-11 Thread Luke Hiesterman
n complaining about the same problem, which > was not resolved, > > So, my questions are: > > 1. Is this likely to be an iOS bug that I should report? Certainly sounds like a bug from your description. It never hurts to file, and bugs don'

Re: Animating a UITableViewCell changing size

2011-10-13 Thread Luke Hiesterman
reOpen:YES]; [tableView beginUpdates]; [tableView endUpdates]; Luke On Oct 13, 2011, at 2:35 AM, "Thomas Davie" wrote: > Dear list, > > I'm trying to construct a UITableViewCell with what is essentially a > disclosure triangle on it. When that's tapped, the cell exp

Re: Managed Object Model versions

2011-09-30 Thread Luke Sneeringer
Nevermind, what you said sparked a light bulb. I'm looking at the code in my app delegate now. I think I'm on the right track. Thanks for your help! Regards, Luke On September 30, 2011, at 15:31 , Luke Sneeringer wrote: > Hmm. I never did that...but perhaps that's my pro

Re: Managed Object Model versions

2011-09-30 Thread Luke Sneeringer
rName: @"MyObject" inManagedObjectContext: db]; MyObject* object = [[MyObject alloc] initWithEntity: entity insertIntoManagedObjectContext: db]; Am I missing something? I want to learn. :) Regards, Luke Sneeringer On September 30, 2011, at 7:11 , Heath Borders wrote: > You spe

Managed Object Model versions

2011-09-29 Thread Luke Sneeringer
y/Application Support/ at all. So...how can I get rid of my old persistent store? It doesn't have to be programmatic -- in fact, I'd prefer it not be programmatic. I just want to wipe it off the disk. Help! Thanks, Luke Sneeringer___ Coco

Re: Confused with block completionHandler

2011-08-24 Thread Luke Hiesterman
;myDocType" forSaveOperation:NSAutosaveInPlaceOperation completionHandler:^(NSError* error) { if (error) { // do some error handling } else { // do other work } }]; Luke On Aug 24, 2011, at 5:46 PM, Brad Stone wrote: > I need to call this method manually but I

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

2011-08-18 Thread Luke Hiesterman
- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath; // returns nil if cell is not visible or index path is out of range Luke On Aug 18, 2011, at 2:38 PM, Rick Mann wrote: Xcode 3.2.6, iOS 4.3 (8F190 simulator) I'm calling -indexPathsForRowsInRect:, which alwa

Re: Masking UIImages (yes, again)

2011-06-26 Thread Luke Hiesterman
ues > involving CGBitmapContextCreate and CGImageCreate but with no luck. Note that if you did successfully make parts of your image transparent, they would show up as black if drawn into an opaque context. How are you drawing/displaying the image? Luke > > This can't POSSIBLY

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,

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Luke the Hiesterman
Controller, and UISplitViewController do a lot of special work to make everything work right for their contained view controllers. Luke On May 18, 2011, at 12:19 PM, Nathan Sims wrote: > Okay, but won't that make for one mega-complex view controller? > > On May 18, 2011, at 11:58

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Luke the Hiesterman
probably better off having a single view controller and each of your quad views should just be regular UIViews managed by the one view controller. And, if you did that, all your views would naturally be built in the one nib that defines your view controller :) Luke On May 18, 2011, at 11:53 A

Reducing AVCaptureVideoDataOutput framerate

2011-05-17 Thread Luke Scott
scanner = nil; delegage = nil; preview_ = nil; previewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:captureSession]; } return self; } Does anyone know why this isn't working? Luke ___

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? Al

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 have

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
UIKit, you will have to change the name of your class. While you're at it, I'd recommend not prefixing your own class names with UI or other apple prefixes such as NS. It will help you avoid this situation in the future. Luke On Apr 7, 2011, at 10:50 PM, Laurent Daudelin wrote: &g

Re: Trying to subclass UISwitch

2011-04-04 Thread Luke the Hiesterman
"The UISwitch class is not customizable." And what he really wanted to do was customize the appearance. Luke On Apr 4, 2011, at 3:02 PM, Jeffrey Walton wrote: > On Mon, Apr 4, 2011 at 12:20 PM, Philip Ershler > wrote: >> Hi, >>After beating my head against

Re: UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Luke the Hiesterman
@property(nonatomic) NSInteger selectedSegmentIndex; so, segmentedControl.selectedSegmentIndex = theIndexYouWant; Luke On Mar 21, 2011, at 6:49 PM, Jon Sigman wrote: > iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the > segments in -viewDidLoad based on th

Re: Visual feedback of invalid cell data from Core Data - how to?

2011-03-20 Thread Luke Evans
rors that are much more difficult to trace back to the original source of validation issues. Anyway, I think I have my answers for how it is with the current Cocoa/Core Data situation. Cheers. -- Luke On Sat, Mar 19, 2011 at 2:55 PM, Quincey Morris wrote: > On Mar 19, 2011, at 13:44, Luke

Visual feedback of invalid cell data from Core Data - how to?

2011-03-19 Thread Luke Evans
ingy bits to get per-cell validation? Thanks! -- Luke ___ 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)lists.apple.com Help/Unsubscribe

Re: Another bindings conundrum (editing a to-many relationship through an NSArrayController)

2011-03-17 Thread Luke Evans
ely helped to adjust my mental picture and interpretation of what to-many binding means. On Thu, Mar 17, 2011 at 10:25 PM, Quincey Morris < quinceymor...@earthlink.net> wrote: > On Mar 17, 2011, at 11:01, Luke Evans wrote: > > > The column for Territories in the master SalesRep

Re: Another bindings conundrum (editing a to-many relationship through an NSArrayController)

2011-03-17 Thread Luke Evans
piece of string is missing that makes the mechanism work... if you don't intuit what to do right in the first instance, or copy some absolutely canonical pattern. -- Luke On Thu, Mar 17, 2011 at 11:01 AM, Luke Evans wrote: > > Anyway, in short, I'm wondering what the bindi

Another bindings conundrum (editing a to-many relationship through an NSArrayController)

2011-03-17 Thread Luke Evans
ammoth tracing/head-scratching exercise to try to determine where I've deviated from the canon enough to get myself into this situation. The one problem with loosely-bound patterns like bindings is that you don't get much help when you step away from the correct (designed/tested) use patter

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

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

2011-03-03 Thread Luke Hiesterman
th it since you set the mask. Make sense? Luke On Mar 2, 2011, at 10:39 PM, Ray wrote: > Hi! First post to the list, please be gentle ;) > > Small question: when I add a subview to the contentView of a UITableViewCell, > the rendered width of the subview's frame will be diff

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

Re: Reusable Cells

2011-02-02 Thread Luke Hiesterman
ou did get a valid cell out of the queue. Luke Sent from my iPad On Feb 2, 2011, at 2:42 AM, JD Guzman wrote: > Hello, > > I'm new to this list and also relatively new to development on the Mac/iPhone > platforms. > > I was just wondering if

Re: UITableView: Delay select recognition

2011-01-27 Thread Luke the Hiesterman
On Jan 27, 2011, at 8:17 AM, Phillip Mills wrote: > On 2011-01-27, at 10:42 AM, Luke Hiesterman wrote: > >> What is this gesture recognizer you speak of pulling out of the table view? >> Table view does not use gestures for selection, but you're right that even >

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: UITableViewCell and accessoryView

2011-01-26 Thread Luke the Hiesterman
Storing the indexPath doesn't seem hacky to me. Seems like the way to do it. Luke On Jan 26, 2011, at 7:33 AM, Hrishikesh Murukkathampoondi wrote: > I can add detect other touches. But how would I know which row > (UITableViewCell) to remove the accessoryView for? > > One, p

Re: UITableViewCell and accessoryView

2011-01-26 Thread Luke Hiesterman
t it > does on a swipe rather than what I have done? The UITableViewDelegate protocol provides a method for customizing the text of the delete button, but there isn't a way to customize the behavior beyond that. Luke > > > Thanks > Hrishi > > > _

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: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Luke Hiesterman
t you were looking for. Where does the documentation say you can do this in viewDidLoad? Luke Sent from my iPhone. On Jan 16, 2011, at 11:33 AM, G S wrote: > Hi all. > > The Apple doc says this is possible, but it doesn't work when you want > the second modal view controller pres

Re: UITableView Custom Section Headers

2010-12-27 Thread Luke Hiesterman
ge on my section header rather than just some > text. > > Can anyone tells me how to do this? Thanks. > > 2010/8/17 Luis Israel Pasos Peña > >> I was creating an RSS reader that I thought was really cool, but then I saw >> Jason Beaver's and Luke Hiesterman

Re: TableView deselection issue

2010-12-10 Thread Luke the Hiesterman
is to do your background swapping as a response to setHighlighted:animated: or setSelected:animated: on a cell, rather than doing it in didSelectRowAtIndexPath: Luke On Dec 10, 2010, at 2:54 PM, Damien Cooke wrote: > Hi All, > I have a perplexing yet, probably, very simple problem. I hav

Re: forwarding Touch Events

2010-12-01 Thread Luke the Hiesterman
It sounds like you might be best off doing your touch handling all in the superview. You can marshal all your subviews the way you want from there. There shouldn't be any reason to call touch handling methods yourself. Luke On Dec 1, 2010, at 12:06 PM, Gustavo Pizano wrote: > H

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

Re: Phone lock/Apple sounds

2010-09-09 Thread Luke the Hiesterman
This is what push notifications are for. http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html Luke On Sep 9, 2010, at 5:47 AM, Dan Hopwood wrote: > Hi all, > > My iPhone application continuously pin

Re: Continuous animation locks UI?

2010-09-07 Thread Luke Iannini
ref/c/tdef/UIViewAnimationOptions If I remember correctly, this is set to 'No' by default in 4.0. I also remember reading a note somewhere that that default was being considered for reversion, perhaps due to confusion such as your own : ). Very best Luke On Mon, Sep 6, 2010 at 9:32 PM, Dave

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

Re: who stole my UIView?

2010-08-12 Thread Luke the Hiesterman
IView. Long story short, don't change the layer's delegate. If you want to act as a layer's delegate you should create a CALayer instead of a UIView and then do [self.view.layer addSublayer:layer]; Luke On Aug 12, 2010, at 4:28 PM, Matt Neuburg wrote: > Here's my code, si

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 Ju

Re: Modal phone calls?

2010-07-27 Thread Luke the Hiesterman
d > bring back my app to the foreground. I am reading up on many possible avenues > in the docs that seem plausible but are rather protracted and mind-bending. > > So for starters, can this be done given iOS4? > No. Only the user can choose to background/e

Re: Subclass UIScrollView or compose?

2010-07-01 Thread Luke the Hiesterman
be NSObject so that anyone can unarchive a copy and put it to use even without using UIViewController. Just a few possible paths that spare you from the fact that subclassing UIScrollView is easy to get wrong. Luke On Jul 1, 2010, at 3:47 PM, Rick Mann wrote: > I don't use a UIViewCont

Re: Subclass UIScrollView or compose?

2010-07-01 Thread Luke the Hiesterman
If you use a UIViewController, then dropping your custom view into UIScrollView in IB should be completely straightforward for all your uses. Luke On Jul 1, 2010, at 3:29 PM, Rick Mann wrote: > I'm developing a custom scrolling view, and I could either subclass > UIScrollView,

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 a

Re: Using table view cells from nibs

2010-05-29 Thread Luke the Hiesterman
I realized we're talking about different things. My mind when instantly to UITableView and I didn't realize we were talking about NSTableView. I can only speak for UITableView :) Luke On May 29, 2010, at 9:45 AM, Quincey Morris wrote: > On May 29, 2010, at 08:56, Luke Hie

  1   2   3   4   5   >