Re: UITable Views and display lags

2010-03-19 Thread WT
On Mar 19, 2010, at 6:40 PM, Michael Davey wrote: > OK, so I have changed the code to show a placeholder image, but I am a little > uncertain as to how to fetch the images asynchronously. I could start a > background thread with performSelectorInBackground, but am concerned that > this would s

Re: UITable Views and display lags

2010-03-21 Thread WT
On Mar 21, 2010, at 5:52 PM, Matt Neuburg wrote: > On Fri, 19 Mar 2010 18:55:12 +0100, WT said: >> On Mar 19, 2010, at 6:40 PM, Michael Davey wrote: >> >>> OK, so I have changed the code to show a placeholder image, but I am a >>> little > uncertain as to ho

Re: UITable Views and display lags

2010-03-21 Thread WT
On Mar 21, 2010, at 6:25 PM, Jack Carbaugh wrote: > You don't need to overcomplicate downloading the images with an NSOperation. > > In my experience, downloading asynchronously with an NSURLConnection and the > delegate methods works far better. > > Jack I don't think using NSOperation is ove

Re: UITable Views and display lags / NSOperation vs NSURLConnection

2010-03-21 Thread WT
peration avenue, it took longer, UI updates were not as fast as > the queue would handle only one operation at a time, in series. > > For me, the NSURLConnection route was just better for my specific needs and, > i think may be as well for the OP. > > jack > > On Mar

Re: iPhone search of my app's data?

2010-03-21 Thread WT
You can always slide the search field into the window, below the navigation bar, while pushing (or, perhaps, vertically resizing) the table view. If you set the auto-resizing properties of the table view correctly, more than half of the work is already done. The only remaining question is one of

Re: UITable Views and display lags / NSOperation vs NSURLConnection

2010-03-21 Thread WT
ll look into this and THANK YOU for the insight. > > > On Mar 21, 2010, at 2:22 PM, WT wrote: > >> It was serial? Did you, by any chance, set the maximum number of running >> operations to 1? I don't recall for sure now, but that may be the default, >> actuall

Re: UITable Views and display lags / NSOperation vs NSURLConnection

2010-03-21 Thread WT
nificant improvement. > > Again, my thanks ... and yes, it is great to have alternatives. > > jack > > On Mar 21, 2010, at 2:42 PM, WT wrote: > >> And thank you for the NSURLConnection suggestion. It's always good to have >> alternatives. :) >> >

Re: iPhone search of my app's data?

2010-03-21 Thread WT
On Mar 22, 2010, at 12:39 AM, Kyle Sluder wrote: > On Sun, Mar 21, 2010 at 11:36 AM, WT wrote: >> You can always slide the search field into the window, below the navigation >> bar, while pushing (or, perhaps, vertically resizing) the table view. If you >> set the auto-r

Re: Preservation of State

2010-04-05 Thread WT
On Apr 5, 2010, at 6:04 PM, Frederick C. Lee wrote: > Greetings: >I wish to preserve the state of an iPhone/iTouch application; which means > that I would like the application to continue deep down within a stock of > View Controllers at a particular view when I return to the application. >

How to subclass UIButton?

2010-04-07 Thread WT
s, but I'd prefer to have actual UIButton instances. Am I missing something trivial here? If UIButton was designed in such a way to prevent subclassing, what would you suggest as the best alternative? Thanks in advance. WT.___ Cocoa-dev mailing l

Re: How to subclass UIButton?

2010-04-07 Thread WT
elf. Once the swiping and reordering (as in the Autoscroll sample code) have been dealt with, this "proxy" UIView instance can decide if/when to forward a tap gesture to the button. So, yes, composition seems to be the way to go here. > On Wed, Apr 7, 2010 at 2:26 PM, WT wrote: &

Re: How to subclass UIButton?

2010-04-07 Thread WT
> If you want to use the existing buttonWithStyle: method, all you need > to do is implement initWithFrame:, since that's the default > initializer Is the fact that -initWithFrame: is the designated initializer documented anywhere? The docs for UIButton don't mention it. If this is documented and

need help getting Apple sample code to compile

2010-04-21 Thread WT
Hello all, I'm trying to compile the XML Performance sample code for the iPhone, but I have so far been unsuccessful. I followed the instructions on the readme file, namely, to set the HEADER_SEARCH_PATHS build setting to $SDKROOT/usr/include/libxml2. I also tried both recursive and non-recursi

[iPhone] Frustrated by a simple task

2010-05-12 Thread WT
The client I'm writing an app for wants a splash screen with some information that cannot go in the launch image (because it's dynamically generated), meaning that the first view controller to ever be instantiated will have in its view an image view along with other views (labels to hold the gen

Re: [iPhone] Frustrated by a simple task

2010-05-13 Thread WT
On May 13, 2010, at 12:39 AM, Ricky Sharp wrote: > Splash screens should be avoided at all costs in iPhone OS apps. Remember > that you want the app to launch as quickly as possible and let the user > immediately begin doing tasks. Splash screens are typically only useful when > a desktop app

[iPhone] How to access the Cancel button in a search bar?

2010-05-17 Thread WT
The subject pretty much says it all. I need to access the Cancel button of a search bar, so I can change its title. I couldn't find a way to set an outlet to it in IB, and the docs don't show it as a property of the search bar. Any ideas? Thanks in advance. WT___

Re: Adding Mutiple Lines to a UITableView

2010-05-19 Thread WT
details. WT On May 20, 2010, at 1:42 AM, Nick Rawlins wrote: > Hi, > > Does anyone have any suggestions or examples on adding more than 2 lines to > a UITableView row on the iPhone? > > > I am using textLabel and detailTextLabel at present but wish to also add a > 3rd an

[iPhone] Preprocessing events sent to UITableView

2010-06-05 Thread WT
I need to hijack the set of touch events sent to a UITableView instance prior to allowing the table to process those events. I have a custom UIView, of which the table view is a subview, and I override -hitTest:withEvent: there (in the custom view) to return self, thereby preventing the table f

Re: [iPhone] Preprocessing events sent to UITableView

2010-06-06 Thread WT
On Jun 6, 2010, at 2:09 AM, glenn andreas wrote: > On Saturday, June 05, 2010, at 05:51PM, "WT" wrote: >> I need to hijack the set of touch events sent to a UITableView instance >> prior to allowing the table to process those events. >> >> I have a custom

Re: [iPhone] Preprocessing events sent to UITableView

2010-06-08 Thread WT
ed to scroll vertically. The solution I indicated works fine, but I don't think it's very elegant. Personally, I think swiping to change sections is a bad idea, but that's not my call to make. On Jun 6, 2010, at 4:30 PM, David Duncan wrote: > On Jun 6, 2010, at 1:41 AM, W

[iPhone] Determining minimum height for a UIWebView

2010-06-15 Thread WT
Hello, I'm trying to find out how to set the height of a UIWebView instance, given its content, so that the user doesn't need to scroll the UIWebView itself to see that content. Of course, the content might not fit in the vertical space available but the UIWebView instance is part of a tablevie

Re: iPhone puzzle about rotation

2011-01-31 Thread WT
On Jan 31, 2011, at 11:16 PM, David Rowland wrote: > Is there something that defeats the delivery of rotate events to a view > controller? This may or may not be the case with your app, but a UITabBarController vetoes device orientation change events to its managed view controllers unless every

[iOS] Strange behavior of NSFetchedResultsController

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

[iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
en why doesn't it as I've implemented it? It appears to me that NSFetchedResultsController ignores a sort descriptor based on a transformable attribute. The test project can be found here: http://www.restlessbrain.com/FRC_Test.zip I'd greatly appreciate any help. I've a

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
f times > > why not trying to use an Hash Table in order to use weak reference with > NSHashTable ??instead of each time ask core data to update all the entire > store > > best regards > > > > > Le 10 févr. 2011 à 16:19, WT a écrit : > >> H

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
On Feb 10, 2011, at 3:54 PM, Quincey Morris wrote: > Perhaps you're assuming that Core Data will internally call the above getter > to figure out what to put into the store. It doesn't work that way. Most > likely your store contains nil values for the "indexOrName" attribute. (I'm > assuming y

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
Your statement that I need to get the values of "indexOrName" stored in the store led me to write the odd-looking line of code below cdCountry.indexOrName = cdCountry.indexOrName; when the entities are created and it fixes the problem in the test project. I'm now more convinced than ever that C

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
oc-reading, I've done all the code-walking and debugging, and I've narrowed the problem down to a very specific issue, but I'm still not seeing the light. The most recent test project can be found here: http://www.restlessbrain.com/FRC_Test_2.zip I'd be grateful if someone could look

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
On Feb 10, 2011, at 7:28 PM, Quincey Morris wrote: > On Feb 10, 2011, at 12:59, WT wrote: > >> So, why doesn't it sort them correctly when it's accessing the "indexOrName" >> stored value? > > You *cannot* have an attribute that's both a deri

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread WT
You can define a common superclass for both MyAppDelegate and MyPrefDelegate - MyCommonAppDelegate - and use that as the type of the IBOutlet. You can then #define convenience delegates for each actual case, so you'd have something like: IBOutlet MyCommonAppDelegate* commonDelegate; and then

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread WT
>>> I have one project that outputs two binaries - one for the App Store (an >>> app) and one for my own website version (a prefpane). >>> >>> All the classes are the same except for two: >>> >>> MyPrefPaneDelegate >>> >>> MyAppDelegate >>> >>> These are each in their respective apps. >>> >>>

Re: Unique strings array

2011-03-11 Thread WT
Hi Leonardo, the easiest and, probably, most efficient way is to insert your words into a (mathematical) set, which guarantees uniqueness. My suggestion then is that you read the documentation on NSSet. You insert all your words into an instance of NSMutableSet and that's it. WT On M

[iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
Hello, in one of my projects, a UITableView instance displays a number of objects whose information is gathered from the web. As it turns out each of these objects can be in one of two states, with visual differences. In the "loading" state, only a minimal amount of information about the object

[Solved] [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
Duh... I should have searched the web before firing the question to the list. It turns out there are many references to this exact task and its solution. Here's one such: http://www.alexandre-gomes.com/?p=482 Basically, the idea is to call -reloadRowsAtIndexPaths: withRowAnimation: at the appro

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
On Mar 14, 2011, at 2:27 PM, Conrad Shultz wrote: > WT wrote: >> When the object displayed in a given UITableViewCell is in the >> loading state, the cell's height is just a bit larger than a >> UILabel's height. When the object is in its "loaded" sta

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
On Mar 14, 2011, at 5:40 PM, Conrad Shultz wrote: > No problem, happy to help, even if you independently found the solution. > > As for begin/endUpdates, what these do is synchronize animations that > otherwise might be performed serially. If you are updating a single row > there is no reason, A

Splitting a single Core Data model between several files

2011-03-18 Thread WT
Hello, in searching the web and the archives for help on splitting a single CD model into several files, I found that the most recent exchanges on this subject date back to July 2009 and September 2008: Core Data, migrate a model split into two files http://www.cocoabuilder.com/archive/cocoa/24

Re: iPhone animation puzzle

2011-03-20 Thread WT
I seem to recall that one of the WWDC 2010 instructional videos - available for free from Apple's developer site - mentions that the block version has UIViewAnimationOptionAllowUserInteraction off by default. That being said, have you filed a document enhancement request? WT On Mar 20,

Re: Exporting and Importing CoreData

2011-03-23 Thread WT
On Mar 23, 2011, at 8:13 PM, Siegfried wrote: > Hello, > > I need to create an export / import system for my app, and just thought that > asking the list for some advices could help a lot. > > The CoreData database I have is fairly simple. No relationships, only 3 > entities with no more than

Re: Exporting and Importing CoreData

2011-03-23 Thread WT
On Mar 23, 2011, at 8:46 PM, Siegfried wrote: > On 23/03/2011, at 20:38, WT wrote: > >> On Mar 23, 2011, at 8:13 PM, Siegfried wrote: >> >>> Hello, >>> >>> I need to create an export / import system for my app, and just thought >>>

Re: iOS - Hide Master view in a split view

2011-03-24 Thread WT
On Mar 24, 2011, at 6:27 PM, Eric Gorr wrote: > I am trying to figure out how to hide the master view in a split view while > in landscape mode. Searching, I found the suggestion to try: > > [[master view] setFrame:CGRectMake(0, 0, 0, 0)]; > [[detail view] setFrame:splitBounds]; > > Howev

Re: iOS - Hide Master view in a split view

2011-03-24 Thread WT
On Mar 24, 2011, at 8:18 PM, Eric Gorr wrote: >> On Mar 24, 2011, at 7:11 PM, WT wrote: >> >> I just ran a very quick test and the following code snippet successfully >> toggles between showing and hiding the master view: >>

Re: Help with Custom Control

2011-03-25 Thread WT
On Mar 24, 2011, at 12:10 AM, Carlos Eduardo Mello wrote: > Hi, > > I built a special control with a custom view and several parts, including > standard controls and some subviews. The thing does special displaying and > animation, and needs to be connected to other parts of the UI and to the

Re: Help with Custom Control

2011-03-25 Thread WT
On Mar 25, 2011, at 5:55 PM, Sean McBride wrote: > On Fri, 25 Mar 2011 17:46:04 -0300, WT said: > >> If you're working with XCode 3.x, you can write an Interface Builder >> plugin for your custom view. I'm sure there are good tutorials online on >> how to cr

Re: Cocoa alternative for method aliasing?

2011-03-29 Thread WT
On Mar 29, 2011, at 4:25 PM, Matt Neuburg wrote: > On Tue, 29 Mar 2011 11:20:31 -0700, Lou Zell said: >> I have a subclass of UIButton, call it MyButton, that I would like to >> function as a vanilla UIButton but also pass touch events to the next >> responder (I'm interested in eventually gettin

Re: UIView size after rotation

2011-03-30 Thread WT
he correct frames or bounds, and the correct coordinate systems. WT ___ 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)

Re: UIView size after rotation

2011-03-30 Thread WT
he correct frames or bounds, and the correct coordinate systems. WT Important correction: you don't really want to actually clip any of the views, but clip a copy of their frame rectangles. After all, you just want to compute the results, not make them happen. WT_

Re: Click in underlying document while sheet displayed?

2011-03-30 Thread WT
On Mar 30, 2011, at 9:01 PM, Graham Cox wrote: > Hi all, > > I have a situation where I present a sheet dialog. The sheet asks the user > for some input values to perform a "polar duplicate" of a graphic object in > the underlying document (number of copies, rotation increment, etc). One of >

Re: Can't keep untitled windows from opening!

2011-03-31 Thread WT
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender > hasVisibleWindows:(BOOL)flag > { > NSLog(@"Calling [applicationShouldHandleReopen]..."); > return NO; > } > > Thanks, > > Carlos. Are you sure the window delegate is being set co

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-03-31 Thread WT
n which case you'd use the row's index path as the identifying token. You can then fire as many Downloader instances as there are visible rows and update each row as its downloader is done. Hope this helps. WT // Downloader.h // Copyright 2010 Wagner Truppel. All rights reserved. //

Re: (no subject)

2011-03-31 Thread WT
On Apr 1, 2011, at 1:29 AM, Rikza Azriyan wrote: > Anyone could help me,, > I want to handle touch drag event programatically, for example in ibooks > reader, we use fingertips for navigating to next/prev page by sliding the > screen to the left/right direction. > I want to handle this event wi

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-04-01 Thread WT
On Apr 1, 2011, at 12:47 PM, Chris Markle wrote: > WT, > > Thanks for the code! Hello again, Chris. You're most welcome! > So of the approaches: > >>> 1. delegates >>> 2. blocks >>> 3. KVO >>> 4. Notifications > > you went with de

Re: Trying to subclass UISwitch

2011-04-04 Thread WT
On Apr 4, 2011, at 1:20 PM, Philip Ershler wrote: > Hi, > After beating my head against the wall trying to subclass UISwitch, so > that I might change the "text" for the two states, I finally noticed that > there is a statement in the docs that UISwitch cannot be subclassed. (Please > no

Re: Localized sorting of a Core Data entity

2011-04-07 Thread WT
On Apr 7, 2011, at 3:23 PM, Chase Latta wrote: > Also, I don't actually know if you can register to receive notifications when > the user changes their language preference You can: NSCurrentLocaleDidChangeNotification WT === autoupdatingCurrentLocale Returns the current logical loc

Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
Hi all, I've started to use GCD in my projects and I found myself using a certain pattern that I now realize isn't actually thread safe. The goal is to write a thread-safe lazy accessor without using locks, @synchronized, or an atomic property. At first I thought that - (SomeObjType) foo {

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
Hi Jonathan, thanks for replying. On Apr 14, 2011, at 11:12 AM, Jonathan Taylor wrote: > I am afraid I am not completely sure what you mean by your first problem, That's ok. As I said, it's easy to fix. I don't want to get sidetracked here by going through it in detail. If you'd like to discus

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
On Apr 14, 2011, at 1:19 PM, Jonathan Taylor wrote: > I tested this out before replying as I wasn't 100% certain. It may be that we > have misunderstood each other somehow, but the following code (in a clean new > project) was what I used to confirm to myself that two concurrently-executing > t

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
Hi David, thanks for pitching in. On Apr 14, 2011, at 1:40 PM, David Duncan wrote: >> I tested this out before replying as I wasn't 100% certain. It may be that >> we have misunderstood each other somehow, but the following code (in a clean >> new project) was what I used to confirm to myself

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
mes, it will report the wrong foo value. > > Can you please provide a compilable test case? I don't have an actual sample case where it has happened. Admittedly, this was just a thought experiment. Thanks again for your help. WT ___ Cocoa-dev

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
On Apr 14, 2011, at 2:09 PM, David Duncan wrote: > On Apr 14, 2011, at 10:02 AM, WT wrote: > >> I looked at dispatch_once() at one point, but I'm still confused by how it >> works. > > dispatch_once uses a predicate (just a flag) to determine if it should run >

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread WT
Thanks to everyone who responded. Two things are clear: there is no one-size-fits-all answer here, and I need to do a more detailed analysis of the needs in my project. WT___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Proper way to create a singleton without @synchronized ?

2011-04-16 Thread WT
ion for you all is then whether this is indeed correct, or whether I'm missing something that my testing may not have revealed. Thanks in advance. WT === // MySingleton.h: #import @interface MySingleton: NSObject { NSUInteger someInteger_; } @property (readwrite, nonatom

Re: Proper way to create a singleton without @synchronized ?

2011-04-16 Thread WT
le's docs. Where exactly escapes me right now. Thanks again. WT ___ 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: Proper way to create a singleton without @synchronized ?

2011-04-16 Thread WT
Hi Kyle, thanks for replying. On Apr 17, 2011, at 12:31 AM, Kyle Sluder wrote: > Do you really need a singleton, or just a default instance? A singleton. >> static MySingleton* stSharedInstance = nil; >> >> static dispatch_once_t stSharedInstanceInvoked; >> static dispatch_once_t stAllo

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
Hi Ken, On Apr 17, 2011, at 3:00 AM, Ken Thomases wrote: > On Apr 17, 2011, at 12:20 AM, WT wrote: > >> On Apr 17, 2011, at 12:31 AM, Kyle Sluder wrote: >> >>>> self class] alloc] init] autorelease]; >>> >>> You are in a class method.

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
e dictionary before > returning it. Of course, this would preclude any of the subclasses doing > [self release] and returning a new object, but that's probably an adequate > compromise. That's an interesting suggestion and it's something I'll consider it. Thanks for of

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
> it's possible the base class could be an abstract class, perhaps providing > nothing except the ability for concrete subclasses to make singleton > instances of themselves Yes, that's precisely the use I have in mind, because it's the most common in my projects. WT

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
On Apr 17, 2011, at 12:03 PM, Kyle Sluder wrote: > On Apr 16, 2011, at 10:20 PM, WT wrote: > >> >> On Apr 17, 2011, at 12:31 AM, Kyle Sluder wrote: >> >>> Do you really need a singleton, or just a default instance? >> >> A singleton. > > O

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
On Apr 17, 2011, at 12:57 PM, Scott Ribe wrote: > On Apr 16, 2011, at 9:04 PM, WT wrote: > >> Among other things, I wanted to replace my usage of @synchronized >> singletons... > > Why? As a learning experience, experimenting with GCD, what you're doing is > s

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
On Apr 17, 2011, at 3:52 PM, Joanna Carter wrote: > Hi guys > >> That's only because, unlike java, obj-c doesn't have a way built into the >> language to enforce a class to be abstract. I can see valid reasons to >> subclass a singleton if that singleton is to be used as an abstract class >> a

Re: How do I disable Xcode 4's SVN support?

2011-04-17 Thread WT
olution such as what you're looking for, I think you can go to the Repositories panel of the Organizer window (hit cmd-shift-2 to get to the Organizer window) and delete XCode's knowledge of your repository. I haven't tried, so I don't know if that actually works. WT ___

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
On Apr 17, 2011, at 4:28 PM, Scott Ribe wrote: > On Apr 17, 2011, at 12:43 PM, WT wrote: > >> That's not what I keep reading/hearing. Apple's made a big push for GCD in >> WWDC 2010, even on iOS devices. > > Yeah, for actually performing tasks on background th

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
On Apr 17, 2011, at 4:55 PM, Joanna Carter wrote: > Hi WT > >> what happens if you need/want to subclass that class? Then you have to >> search for and change all the places in your code base that refer to it. > > Hmmm, I have a problem with the idea of subclass

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread WT
d out if I don't explore the issue, will I? :) > 3. This thread really isn't about singletons at all. Looking back at your > original post, it's really about thread-safe creation of shared objects: That's certainly a big component of my original question, yes, but I also

Re: Proper way to create a singleton without @synchronized ?

2011-04-18 Thread WT
On Apr 18, 2011, at 5:05 AM, Joanna Carter wrote: > Yes; after the first few projects, based on the default Core Data project > template, I started to realise that this (separating out the Core Data stack) > was an excellent case for a singleton/static class. > > Can someone tell me if it is ju

(iOS) strange animation bug

2011-07-02 Thread WT
if the alphas get cleared immediately, even though the entire thing appears inside an animation block. This is really simple stuff, and I can't see what may be wrong with it. Any help is appreciated. Thanks! WT ___ Cocoa-dev mailing list (Cocoa-dev

[Solved] (iOS) strange animation bug

2011-07-02 Thread WT
Duh... I set the button alphas to 0 before animating them back. I can't believe I looked at those lines of code so many times and didn't realize what the problem was. Simply removing those 3 lines makes the code work as intended. Sorry about the noise. WT - (void) showNotesView: (

Re: Augmented Reality App

2011-07-12 Thread WT
Hi Paul, just yesterday I came across the following, which is very simple but might still be useful to your team: http://www.raywenderlich.com/3997/introduction-to-augmented-reality-on-the-iphone Hope that helps. WT On 11 Jul 2011, at 23:03, Paul Scott wrote: > Anyone that has done an

Re: Cocoaheads?

2011-07-13 Thread WT
On 14 Jul 2011, at 01:23, William Squires wrote: > Sorry about the post - if there's an appropriate Apple list for info on > Cocoaheads clubs is/are, please direct me there. I'm interested to see if > there's one here in San Antonio, TX, USA. Google is your friend. Search for "cocoaheads" (sans

Help needed with setting autoresizing masks

2009-05-29 Thread WT
Hello list, I've been scratching my head for a few hours already trying to get the autoresizing masks set correctly for the following situation, with no luck, and would greatly appreciate some help. I have a view containing two labels, labelA and labelB, horizontally laid out in sequence,

Re: Help needed with setting autoresizing masks

2009-05-29 Thread WT
the problem. It can be downloaded from: http://www.restlessbrain.com/auto_res_mask/ARMaskIssue.zip Thanks for taking a shot at it. Wagner On May 29, 2009, at 11:34 PM, Seth Willits wrote: On May 29, 2009, at 1:38 PM, WT wrote: I also tried turning off the "autoresize subviews" op

[SOLVED} Help needed with setting autoresizing masks

2009-05-30 Thread WT
_res_mask/ARMaskIssue.zip Thanks for taking a shot at it. Wagner On May 29, 2009, at 11:34 PM, Seth Willits wrote: On May 29, 2009, at 1:38 PM, WT wrote: I also tried turning off the "autoresize subviews" option in IB for the container view (and all 4 elements, not that that s

Re: Message from view to viewController

2009-05-30 Thread WT
On May 30, 2009, at 4:40 PM, Pierre Berloquin wrote: [theViewController vagTouchesBegan:self]; QED There's still a warning that the view controller may not respond. But it works seamlessly. Can I get rid of the warning? Yes, by declaring the method -vagTouchesBegan: in the header file of

Re: Message from view to viewController

2009-05-30 Thread WT
retain) UIViewController* viewController; you should use @property (readwrite, nonatomic, assign) UIViewController* viewController; Wagner 2009/5/30 WT On May 30, 2009, at 4:40 PM, Pierre Berloquin wrote: [theViewController vagTouchesBegan:self]; QED There's still a warning th

Re: Message from view to viewController

2009-05-31 Thread WT
On May 31, 2009, at 8:04 AM, Pierre Berloquin wrote: Also I follow your advice about retaining loopholes and use -(void)setViewController:(UIViewController *) vc{ theViewController = vc; } So the warning remains puzzling. Note that it's displayed on the sub view .m page only, after the ca

Re: End Of Method Releasing Order?

2009-06-01 Thread WT
I don't think so. Releasing objects merely decreases their retain count. It's up to the Obj-C runtime system to figure out in what order to actually free the memory allocated for those objects. In other words, we are not the ones deciding how and when to deallocate memory allocated for obje

Re: re-making connections with a different controller

2009-06-09 Thread WT
Hi Stephen, one approach that I have successfully employed several times when having to do a substantial amount of dreadful and error-prone mechanical work on xib files, of the kind you're talking about, is to use a text-editor and do a search and replace on the contents of the xib file.

Re: dumb question

2009-06-12 Thread WT
I have the following in a project of mine, in a file Constants.h, which I import as needed from other source files: #define kAppFrame ([UIScreen mainScreen].applicationFrame) #define kScreenWidth([UIScreen mainScreen].bounds.size.width) #define kScreenHeight

Re: Coming up with ideas

2009-06-12 Thread WT
On Jun 13, 2009, at 4:36 AM, Graham Cox wrote: On 13/06/2009, at 12:30 PM, Development wrote: Hey, how do you guys come up with ideas for new programs? I'm going nuts trying to figure out what type of application I should make. I wish I had your problem ;-) I come up with ideas for new apps

Re: Coming up with ideas

2009-06-14 Thread WT
Hi Graham, care to share some of them? I'm sure lots of people like the OP and myself, who are not as prolific in coming up with ideas as you are, would be happy to take a shot at some of your ideas. Wagner Well, most of them reflect two things: a) my interests and b) the lack of certa

[iPhone] Strange behavior with modal view controllers

2009-06-17 Thread WT
Hi there, I'll ask the question first, then I'll explain why I'm asking it. Is there any known reason whatsoever why presentModalViewController would do absolutely nothing? In an iPhone game app I'm working on, I have a tab-bar with 5 items, 2 of which are managed by the SettingsViewContro

[iPhone] (follow-up) Strange behavior with modal view controllers

2009-06-17 Thread WT
Hello again, I've since created a small project that shows exactly the problem I described. It's a 32 Kb download, found here: http://www.restlessbrain.com/ModalVCTrouble.zip For this small project, I stripped off all animations and any irrelevant code, so it's the smallest project I can c

Re: Arranging NSStrings in a Table column

2009-06-17 Thread WT
Use 3 labels or text-fields, align them in your table view cell using Interface Builder, set the appropriate justification (left, right, or center), and then use a couple of lines of code to set their text values with the actual strings you have. Wagner On Jun 17, 2009, at 3:13 PM, Arun wr

Re: [iPhone] (SOLVED) Strange behavior with modal view controllers

2009-06-17 Thread WT
Hi Michael, thanks for replying to my message. I'm not 100% certain, but I believe this delegate method is new in iPhone OS 3.0 (couldn't find it in the 2.2.1 docs). The project you put together also specifies the iPhone 3.0 SDK. I don't believe it is kosher to speak of these things on the

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 4:37 PM, Graham Cox wrote: It's fair to say that transforms can be a bit unintuitive - you expect them to perform the operations in the order you set. In fact, the reverse order is what it will actually do. (The explanation for this lies in the maths, but it sounds like

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 9:10 PM, Chunk 1978 wrote: ... perhaps there's a way to set the transforming object's origin to it's center some how? i could work with that... The problem is a more subtle one than simply a question of what order in which to perform the transforms. What's happening is t

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 10:50 PM, David Duncan wrote: On Jun 17, 2009, at 7:21 AM, Chunk 1978 wrote: premiss: a red cube, 50 width x 50 height, located at {0,0}. i want to scale the cute 2 times it's width and height, move it to the center of the screen, and rotate it 90º In general you wil

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 10:40 PM, Erik Buck wrote: Only a little bit of math is neccessary to use affine transforms. A lot of math is needed for general 3D programming, but let's ignore that for now. My third grader was tought about associative and communitive math operstions. Some matrix o

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 11:28 PM, David Duncan wrote: On Jun 17, 2009, at 1:58 PM, WT wrote: my understanding was that the OP wanted to do all three operations concurrently. Of course, if he wants simply to move, then scale, and then rotate, there are easier ways to accomplish that than to

Re: Group CGAffineTransform Animations?

2009-06-17 Thread WT
On Jun 17, 2009, at 11:53 PM, Erik Buck wrote: My third grader was taught about associative and commutative math operations. Some matrix operations are associative and some are commutative. That's why the order of operations matters. Just in case: I didn't mean to imply that even third gr

  1   2   3   >