Re: UIResponder Woes
Re: UIResponder Woes
- Subject: Re: UIResponder Woes
- From: Dylan Copeland <email@hidden>
- Date: Thu, 22 Apr 2010 09:18:13 -0400
I have a UIView subclass that overrides UIResponder's touchesMoved: message. I've noticed that when I swipe my finger very quickly across the UIView, my touchesMoved: message only gets called every so often and not constantly getting messaged.
Any ideas?
Thanks.
On Apr 21, 2010, at 3:03 PM, email@hidden wrote:
> Send Cocoa-dev mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.apple.com/mailman/listinfo/cocoa-dev
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cocoa-dev digest..."
>
>
> Today's Topics:
>
> 1. Re: appscript project gives warning with XCODE 3.2.2
> (Karl Moskowski)
> 2. Determining preferred localizations (Gregory Weston)
> 3. NaN Problem Adding Numbers from NSTableView (Philip Juel Borges)
> 4. Re: Custom progress bar for QTMovie?? (douglas welton)
> 5. playing QuickTime movies on iPhone/iPad? (Steve Christensen)
> 6. Re: Determining preferred localizations (Gary L. Wade)
> 7. Re: need help getting Apple sample code to compile (David Duncan)
> 8. Re: using coregraphics with vector art from illustrator
> (Ross Carter)
> 9. Re: Why is compiler warning for
> +setKeys:triggerChangeNotificationsForDependentKey: ?? (Greg Parker)
> 10. Re: CoreData: updating property of fetched object and
> refetching (olivier destrebecq)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 21 Apr 2010 09:02:06 -0400
> From: Karl Moskowski <email@hidden>
> Subject: Re: appscript project gives warning with XCODE 3.2.2
> To: email@hidden
> Cc: email@hidden
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset="us-ascii"
>
>
> On 2010-04-21, at 8:17 AM, John Love wrote:
>
>> Everything worked just dandy for SourceForge's "appscript" with XCODE 3.2.1. But, with updating to 3.2.2, it is giving me some grief:
>>
>> For one project, it's giving a warning:
>>
>> ld: warning: directory '/Users/johnlove/Documents/XCode/Calculate Medical/../../../appscript/Appscript Framework Project/build/Debug' following -F not found
>>
>> Being a warning, app still runs and runs impeccably.
>>
>> I thought that maybe the appscript framework needed to be re-built with XCODE 3.2.2 .. but that attempt generates an error:
>>
>> There is no SDK with the name or path '/Developer/SDKs/MacOSX10.4u.sdk'.
>>
>> I can hardly remember Tiger sdk's being on my hard drive.
>>
>> Building with 3.2.1 gives no error.
>
> I've seen the same problem with tool-type targets, though only in build configs with the setting Build Active Architecture Only unchecked (e.g., the Release config, in a new Foundation tool project). I first noticed it with Sparkle on 3.2.2 - building the relaunch tool target shows these warnings.
>
> It looks like it's a bug in 3.2.2. I filed it (rdar://7872548), in case anyone else wants to jump on the bandwagon.
>
> ----
> Karl Moskowski <email@hidden>
> Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 3692 bytes
> Desc: not available
> Url : http://lists.apple.com/pipermail/cocoa-dev/attachments/20100421/50349804/smime.bin
>
> ------------------------------
>
> Message: 2
> Date: Wed, 21 Apr 2010 09:59:48 -0400
> From: Gregory Weston <email@hidden>
> Subject: Determining preferred localizations
> To: cocoa-dev Dev <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> I'm trying to display a localized list of attached displays, and getting unexpected results in Carbon and Cocoa when attempting to determine the best localization. I did all the obvious-to-me Google searches without finding much except a couple of other people over the years having similar issues and no real resolution. Sample code and results follow. Hoping someone can point me in the right direction.
>
> FWIW, I've tried both "en" and "English" for both the Info.plist development region and the localized resources folder in the app.
>
> Thanks for any help.
>
> Greg
>
> - (NSString*)bestLocalization:(NSArray*)inChoices
> {
> NSUserDefaults* theDefaults = [NSUserDefaults standardUserDefaults];
> NSArray* theUserSettings = [theDefaults objectForKey:@"AppleLanguages"];
> NSLog(@"User Settings: %@", theUserSettings);
>
> NSLog(@"Choices: %@", inChoices);
>
> NSArray* theBestOnes = [NSBundle preferredLocalizationsFromArray:inChoices];
> NSLog(@"Chose: %@", theBestOnes);
>
> return [theBestOnes objectAtIndex:0];
> }
>
> Mac mini (Early 2009) 10.6.3 with Dell 2007WFP:
>
> User Settings: (English)
> Choices: ("en_US")
> Chose: ("en_US")
>
> MacBook Core 2 Duo 10.6.3:
>
> User Settings: (en, fr, ja, de, es, it, nl, sv, nb, da, fi, pt, "zh-Hans", "zh-Hant", ko, ru, pl, "pt-PT")
> Choices: ("nl_NL", "da_DK", "pl_PL", "en_US", "nb_NO", "fr_FR", "pt_BR", "pt_PT", "zh_CN", "es_ES", "ja_JP", "ru_RU", "sv_SE", "zh_TW", "de_DE", "fi_FI", "it_IT", "ko_KR")
> Chose: ("zh_CN")
>
> MacBook Pro 10.5.8 plus Apple Cinema Display:
>
> User Settings: (en, fr, ja, de, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru, pl, "zh-Hans", "zh-Hant", ko)
> Choices: ("it_IT", "en_US", "ko_KR", "fi_FI", "nb_NO", "ru_RU", "zh_CN", "nl_NL", "de_DE", "ja_JP", "pl_PL", "es_ES", "fr_FR", "zh_TW", "da_DK", "sv_SE", "pt_BR", "pt_PT")
> Chose: ("fr_FR")
> User Settings: (en, fr, ja, de, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru, pl, "zh-Hans", "zh-Hant", ko)
> Choices: ("it_IT", "en_US", "ko_KR", "fi_FI", "nb_NO", "ru_RU", "zh_CN", "nl_NL", "de_DE", "ja_JP", "pl_PL", "es_ES", "fr_FR", "zh_TW", "da_DK", "sv_SE", "pt_BR", "pt_PT")
> Chose: ("fr_FR")
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 21 Apr 2010 16:53:29 +0200
> From: Philip Juel Borges <email@hidden>
> Subject: NaN Problem Adding Numbers from NSTableView
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> Hi,
>
> I've googled this issue to no avail until now. In my application I
> have a tableview with 6 columns to enter numbers for statistic
> purposes. That works fine. Yet, I've run into a problem adding the
> numbers together. Under each column below the tableview I have placed
> an NSLabel to show the total amount. I bind that label under Value in
> the bindings panel like so:
>
> Bind To: myArrayController
> Controller Key: arrangedObjects
> Model Key Path: email@hidden
>
> But some times I need to leave a tableview cell blank and then it
> writes NaN in the label. If I type in 0 (zero) it adds up the numbers
> nicely. But I'd rather just leave the selection empty rather than
> typing in a zero.
>
> Any ideas how to solve the NaN issue?
>
> --Philip
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 21 Apr 2010 10:57:04 -0400
> From: douglas welton <email@hidden>
> Subject: Re: Custom progress bar for QTMovie??
> To: Chase Meadors <email@hidden>
> Cc: Cocoa-Dev List <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Chase,
>
> The method I use for doing this relies on QuickTime, not QTKit. Even so, I think it is most effective. I implement a movieController action callback filter. This method is demonstrated in the "Adding New Capabilities to the QTKitPlayer Application" section of this document:
>
> <http://developer.apple.com/legacy/mac/library/documentation/QuickTime/Conceptual/QTKitProgrammingGuide/Chapter05/AddingToQTKitPlayer.html#//apple_ref/doc/uid/TP40001245-CH207-TPXREF101>
>
> later,
>
> douglas
>
>
>
>
> Establish a
>
> On Apr 20, 2010, at 11:09 PM, Chase Meadors wrote:
>
>> I'm making a completely custom CoreAnimation-based view that plays an audio media stored in a QT movie. However, I'm struck with an implementation problem with indicating the current time in the movie.
>>
>> Ideally, if QTMovie defined a currentTime property, I could use bindings or a binding-like design to handle the implementation of some time text & progress bar. However, QTMovie does not define it as a property. It appears setCurrentTime is not meant as an accessor to the variable; it's not called when current time changes. There also is no delegate method or anything that is called when currentTime changes.
>>
>> I could setup a timer to check on my QTMovie's currentTime, but that seems silly to setup a 1 second timer to check that the current time has increased by 1 second, when I could just maintain my own current time property.
>>
>> As said before, I could maintain my own currentTime property, incrementing it every second that the QTMovie is playing, and I suppose re-sync it whenever the user manually changes the currentTime. However, this just seems like horrible design.
>>
>> So anyway, QTMovie doesn't appear to support a bindings like design for it's currentTime, so how would one go about implementing a custom progress slider, or text, representing the current time of a QTMovie??
>>
>> Thanks for any thoughts! -Chase
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 21 Apr 2010 08:01:08 -0700
> From: Steve Christensen <email@hidden>
> Subject: playing QuickTime movies on iPhone/iPad?
> To: cocoa-dev Dev <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> I have a need to be able to play a QuickTime movie containing subtitle
> tracks, and to be able to turn specific tracks on or off. In looking
> through the iPhone/iPad docs, it looks like the movie player classes
> are pretty much restricted to simple playback functions. Have I missed
> something?
>
> steve
>
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 21 Apr 2010 08:25:39 -0700
> From: "Gary L. Wade" <email@hidden>
> Subject: Re: Determining preferred localizations
> To: <email@hidden>
> Message-ID: <C7F46703.27D84%email@hidden>
> Content-Type: text/plain; charset="US-ASCII"
>
> The list you are getting is a set of preferred localizations, so when trying
> to get a resource from the first one, if not available, will go on to the
> next one and so forth.
>
> You should utilize the localization-aware methods to handle getting
> resources rather than trying to manage this yourself. There's really only
> two reasons I've encountered a need for this kind of granularity, the first
> where you're forced to use a set of legacy resources that you're unable to
> move into the right places, and the second a localization utility.
>
>
> On 04/21/2010 6:59 AM, "Gregory Weston" <email@hidden> wrote:
>
>> I'm trying to display a localized list of attached displays, and getting
>> unexpected results in Carbon and Cocoa when attempting to determine the best
>> localization. I did all the obvious-to-me Google searches without finding much
>> except a couple of other people over the years having similar issues and no
>> real resolution. Sample code and results follow. Hoping someone can point me
>> in the right direction.
>>
>> FWIW, I've tried both "en" and "English" for both the Info.plist development
>> region and the localized resources folder in the app.
>>
>> Thanks for any help.
>>
>> Greg
>>
>> - (NSString*)bestLocalization:(NSArray*)inChoices
>> {
>> NSUserDefaults* theDefaults = [NSUserDefaults standardUserDefaults];
>> NSArray* theUserSettings = [theDefaults objectForKey:@"AppleLanguages"];
>> NSLog(@"User Settings: %@", theUserSettings);
>>
>> NSLog(@"Choices: %@", inChoices);
>>
>> NSArray* theBestOnes = [NSBundle preferredLocalizationsFromArray:inChoices];
>> NSLog(@"Chose: %@", theBestOnes);
>>
>> return [theBestOnes objectAtIndex:0];
>> }
>>
>> Mac mini (Early 2009) 10.6.3 with Dell 2007WFP:
>>
>> User Settings: (English)
>> Choices: ("en_US")
>> Chose: ("en_US")
>>
>> MacBook Core 2 Duo 10.6.3:
>>
>> User Settings: (en, fr, ja, de, es, it, nl, sv, nb, da, fi, pt, "zh-Hans",
>> "zh-Hant", ko, ru, pl, "pt-PT")
>> Choices: ("nl_NL", "da_DK", "pl_PL", "en_US", "nb_NO", "fr_FR", "pt_BR",
>> "pt_PT", "zh_CN", "es_ES", "ja_JP", "ru_RU", "sv_SE", "zh_TW", "de_DE",
>> "fi_FI", "it_IT", "ko_KR")
>> Chose: ("zh_CN")
>>
>> MacBook Pro 10.5.8 plus Apple Cinema Display:
>>
>> User Settings: (en, fr, ja, de, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru,
>> pl, "zh-Hans", "zh-Hant", ko)
>> Choices: ("it_IT", "en_US", "ko_KR", "fi_FI", "nb_NO", "ru_RU", "zh_CN",
>> "nl_NL", "de_DE", "ja_JP", "pl_PL", "es_ES", "fr_FR", "zh_TW", "da_DK",
>> "sv_SE", "pt_BR", "pt_PT")
>> Chose: ("fr_FR")
>> User Settings: (en, fr, ja, de, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru,
>> pl, "zh-Hans", "zh-Hant", ko)
>> Choices: ("it_IT", "en_US", "ko_KR", "fi_FI", "nb_NO", "ru_RU", "zh_CN",
>> "nl_NL", "de_DE", "ja_JP", "pl_PL", "es_ES", "fr_FR", "zh_TW", "da_DK",
>> "sv_SE", "pt_BR", "pt_PT")
>> Chose: ("fr_FR")
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> 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/Update your Subscription:
>>
> m
>>
>> This email sent to email@hidden
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 21 Apr 2010 09:06:11 -0700
> From: David Duncan <email@hidden>
> Subject: Re: need help getting Apple sample code to compile
> To: WT <email@hidden>
> Cc: Cocoa Dev <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On Apr 21, 2010, at 3:51 AM, WT wrote:
>
>> I'm trying to compile the XML Performance sample code for the iPhone, but I have so far been unsuccessful.
>
> I just downloaded and built the sample without issue, the ReadMe describes what you might need to do to include libXML in your own project, not modifications necessary to the sample (sample code is designed to be self contained and built without modification as a general case).
>
>> What am I missing?
>
>
>> From what I can tell, your doing too much.
> --
> David Duncan
> Apple DTS Animation and Printing
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 21 Apr 2010 13:47:59 -0400
> From: Ross Carter <email@hidden>
> Subject: Re: using coregraphics with vector art from illustrator
> To: Cocoa-dev <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>> Is there perhaps a way to create vector art paths in illustrator, and import
>> the data into xcode and use those paths in CG and stroke/fill them there?
>
> It might be worth looking at Opacity from likethought.com. It exports directly into source code.
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 21 Apr 2010 10:49:18 -0700
> From: Greg Parker <email@hidden>
> Subject: Re: Why is compiler warning for
> +setKeys:triggerChangeNotificationsForDependentKey: ??
> To: Roland King <email@hidden>
> Cc: Steve Cronin <email@hidden>, Cocoa-Dev List
> <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On Apr 20, 2010, at 7:16 PM, Roland King wrote:
>> Either way I still don't see why you'd get a method potentially not found warning, I'd expect a deprecation warning.
>
> There was a compiler bug wherein deprecation warnings on class methods did not work. It should be fixed in a future developer tools release, if it isn't fixed already.
>
>
> --
> Greg Parker email@hidden Runtime Wrangler
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 21 Apr 2010 11:14:30 -0700
> From: olivier destrebecq <email@hidden>
> Subject: Re: CoreData: updating property of fetched object and
> refetching
> To: Keary Suska <email@hidden>
> Cc: "Cocoa-Dev \(Apple\)" <email@hidden>
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> Thanks, that solved it.
>
> Olivier
> http://www.flickr.com/photos/otusweb/
>
>
>
> On Tue, Apr 20, 2010 at 4:16 PM, Keary Suska <email@hidden>wrote:
>
>> On Apr 20, 2010, at 11:22 AM, olivier destrebecq wrote:
>>
>>> Just to clarify, when i say save, i mean call save: on the context and
>> write
>>> it to disk. Which the documentation state that you don't have to call
>> save:
>>> to be able to query for objects and that modified object will be found.
>>
>> Yes. Everything the person said in their email was entirely false (even the
>> statement about SQL). Ignore it completely.
>>
>>> If i wait a little bit (probably for the next event in the event loop)
>> then
>>> the object is found and i never called save: on the context (which will
>> save
>>> the context to disk). I actually only call save: when the app exits.
>>>
>>> The save: method will commit to disk, i'll looking for what trigger a
>> commit
>>> to context I guess.
>>
>> All the save: does is flush all changes to the context to the persistent
>> store. Therefore, they must already be "committed" to the context, so to
>> speak. Assuming that you have only one context and are not using multiple
>> threads, you may be running into an issue where you have to call
>> -processPendingChanges on the context. This might be why you see the delay
>> in "committing", as processPendingChanges is normally called in the run
>> loop. Give that a shot.
>>
>>> I think what i'm running into is this:
>>> "If you fetch some objects, work with them, and then execute a new fetch
>>> that includes a superset of those objects, you do not get new
>>> instances or*update data for the existing objects
>>> *˜you get the existing objects with their current in-memory state."
>>>
>>> The question is how do i commit the updated data to the in memory
>>> representation?
>>
>> Just to clarify that statement, the docs are simply saying that, no matter
>> what, you will always get the in-memory representation, and in fact, will
>> get the very same manage object that you have previously edited, rather than
>> a new object with updated values.
>>
>>> On Tue, Apr 20, 2010 at 9:23 AM, Joanna Carter <
>>> email@hidden> wrote:
>>>
>>>> Hi Olivier
>>>>
>>>>> I create an object and insert it into the context, then i update a
>> couple
>>>>> properties.
>>>>>
>>>>> Later I i do a fetch request with a predicate on the property i updated
>>>>> after the insertion. If i do this fetch right after the update of the
>>>>> property (using the accessors provided by coreData), then the fetch
>> does
>>>> not
>>>>> find the object I created. If i wait longer then it finds it.
>>>>>
>>>>> Is there a way to "commit" the change so that the fetch will find the
>>>> object
>>>>> without saving. I don't want to save every time i update a property.
>>>>
>>>> Since a fetch request returns fully saved objects, I can't see how you
>> can
>>>> expect it to see unsaved changes.
>>>>
>>>> Think about it in database terms - you wouldn't expect a SQL statement
>> to
>>>> return anything other than committed rows. Essentially Core Data is an
>> "OO
>>>> database" and, unless you write your own caching, I doubt if you are
>> going
>>>> to get what you want without saving.
>>>>
>>>> Joanna
>>>>
>>>> --
>>>> Joanna Carter
>>>> Carter Consulting
>>>>
>>>>
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (email@hidden)
>>>
>>> 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/Update your Subscription:
>>>
>>>
>>> This email sent to email@hidden
>>>
>>
>>
>> Keary Suska
>> Esoteritech, Inc.
>> "Demystifying technology for your home or business"
>>
>>
>
>
> ------------------------------
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins (at) lists.apple.com
>
> http://lists.apple.com/mailman/listinfo/cocoa-dev
>
>
> End of Cocoa-dev Digest, Vol 7, Issue 449
> *****************************************
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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/Update your Subscription:
This email sent to email@hidden