Re: MKMapView compositing

2012-11-05 Thread Evadne Wu
When you have alpha transparency you can either blend the aerial tiles into the map view or blend the entire map view into the aerial tiles. Either way, I think, you can get something that looks good. Semitransparent overlays consisted of aerial tiles might actually work, and it is in the

Re: MKMapView compositing

2012-11-04 Thread Evadne Wu
Use overlays. Look into ClassicMap: https://github.com/kishikawakatsumi/ClassicMap which is doing about the same thing using likely illegally obtained Google tiles. Best, Eve On Nov 4, 2012, at 3:15 AM, vincent habchi vi...@macports.org wrote: Hi folks, for a demo app, think of it as

Re: Best practice when opening a Master-Detail app with no data in it yet

2012-09-19 Thread Evadne Wu
Seed data is always a good idea. A “tap here to make a new item” approach would also work in some cases. Best, Eve On Sep 19, 2012, at 11:30 AM, Richard Altenburg (Brainchild) cocoa-...@brainchild.nl wrote: I am creating a master-detail app for both iPad and iPhone families of devices.

Re: stripped down webview

2012-08-18 Thread Evadne Wu
You can use the DOM: dynamically create a Script tag then allow it to load more stuff by abusing -stringByEvaluatingJavaScriptFromString: . On Aug 18, 2012, at 2:51 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: Is there a similar way to inject an external javascript.js file into my

Re: Watching a variable in Xcode 4.3

2012-04-14 Thread Evadne Wu
this - and it doesn't matter whether I try on my MacBook Air or my Mac Pro (with a fresh, clean, install of Xcode). Most perplexing. On 12 Apr 2012, at 20:50, Evadne Wu wrote: http://stackoverflow.com/questions/5632477/where-is-the-expression-window-in-xcode-4 might help. On Apr 13, 2012

Re: Watching a variable in Xcode 4.3

2012-04-12 Thread Evadne Wu
http://stackoverflow.com/questions/5632477/where-is-the-expression-window-in-xcode-4 might help. On Apr 13, 2012, at 3:02 AM, Pascal Harris 45rpmli...@googlemail.com wrote: I've got the weirdest bug. I have a matrix of views (iOS development, by the way) and all of them work correctly

Re: issues using encodeWithCoder: with NSAttributedString for iOS

2012-02-27 Thread Evadne Wu
A very naïve suggestion is that if you are targeting OS X you might be able to use HTML or RTF. Save that and convert the stored into to an attributed string at run time. One idea of font descriptors is that a particular font may not exist on a particular computer, but similar ones might be

Re: xCode crash on validation for App Store

2012-02-26 Thread Evadne Wu
If you are running 10.7.3 then get the new Application Loader. It works. The OS X update broke (!) app validation. On Feb 26, 2012, at 19:14, Georg Seifert georg.seif...@gmx.de wrote: Hi, I’m using xCode 4.3. If I try to validate my app prior to uploading it to the Mac App Store, it

Re: xCode crash on validation for App Store

2012-02-26 Thread Evadne Wu
...@utoronto.ca wrote: Where does one get this Application Loader? I have a similar crash just trying to export the application. On 2012-02-26, at 6:44 AM, Evadne Wu wrote: If you are running 10.7.3 then get the new Application Loader. It works. The OS X update broke (!) app validation. On Feb

Re: iOS - Designing a view controller with multiple views

2012-01-16 Thread Evadne Wu
Synchronous networking should be avoided, and stealing the view from another view controller is bad. Methinks. :p * Use UINib, create some XIBs whose view outlets connect to different views, but the file’s owner are of the same class * On initial view load, load the XIB using UINib’s

Re: UINavigationBar Look and feel

2011-09-07 Thread Evadne Wu
I’m not sure if noting self.navigationController.navigationBar.tintColor, changing it to a new color in -viewWillAppear:, and simply zapping it back on -viewWillDisappear: would work fine. The title property of the pushed view controller is automatically used by the navigation controller. No

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Evadne Wu
I think, if you can use CATiledLayer, things will be a lot more easier. -ev On Aug 24, 2011, at 5:18 AM, Julie Porter wrote: I work with scans of 10 tune Nickelodeon player piano rolls. These can be over 100 yards long when unrolled. My roll images when uncompressed can be 100,000 plus

Re: What does the UIReturnKeyTypeGo does exactly?

2011-08-15 Thread Evadne Wu
Autocorrection enabled text fields and text views in iOS 4.3 simulator would crash on Lion with autocorrection enabled in System Preferences. :) On Aug 16, 2011, at 1:26 PM, Roland King r...@rols.org wrote: Do you mean UIReturnKeyGo? I can't find a UIReturnTypeGo in my docs. It just changes

Re: core data, binary objects and efficiency

2011-07-20 Thread Evadne Wu
about the consequences! On Jul 20, 2011, at 11:46 PM, Evadne Wu wrote: I still recommend files if the object is not very, very negligibly small, or if there is going to be hundreds of them. Core Data SQLite fetching is all-or-nothing — either you only have the object ID or the entire row

Re: core data, binary objects and efficiency

2011-07-20 Thread Evadne Wu
it), that audio data entity contains the data and nothing else. I'm just trying to figure out whether sqlite is the best way to store that, or if I should offload it to a file and just reference it, dealing with the housekeeping. On Jul 21, 2011, at 12:24 AM, Evadne Wu wrote: Good to know; keep

Re: [Q] Directory File enumeration order?

2011-07-20 Thread Evadne Wu
Maybe instead of using the directory enumerator, fetch all the contents as an NSArray and sort that? -ev On Jul 21, 2011, at 05:09, JongAm Park wrote: Hello, I wrote lines of code to enumerate files folders under a given folder. NSFileManager *fileManager = [[[NSFileManager alloc] init]

Re: UIButton on top of other objects

2011-07-18 Thread Evadne Wu
You can open the XIB in Interface Builder, than use the Arrange Bring To Front command to make sure the button is always at front. I think this is the best solution if the bug really is this simple. Otherwise maybe -[UIView bringSubviewToFront:]. -ev On Jul 19, 2011, at 04:41, Fernando

Re: On tapping Status bar scrolls to top in UIWebView content

2011-07-11 Thread Evadne Wu
Since the web view wraps around an UIScrollView, you might have luck finding that scroll view, then disabling the scrolling gesture from there. -ev On Jul 11, 2011, at 20:24, Symadept wrote: Hi, I am facing an issue where once I tap on Status bar, scrolls my UIWebView content to top. How

Re: How to disable double tap on UIWebView

2011-07-11 Thread Evadne Wu
The best thing is to inject some JavaScript event handlers and prevent default actions. This is the cleanest way but I don’t know what happens if your user disables JavaScript. Again the web view wraps around a scroll view, so enumerating thru the view hierarchy and finding all the gesture

Re: AQGridView

2011-06-24 Thread Evadne Wu
Hello Fernando, AQGridView comes with samples, and you can start from there. :) -ev On Jun 25, 2011, at 03:49, Fernando Aureliano wrote: Have some tutorial about AQGridView? I'd like to know it better. Thanks! -- *Fernando Aureliano* ___

Re: How to assign a method for touch event to a UIImageView?

2011-06-24 Thread Evadne Wu
Hello Jonathan, There are several ways around this. You can create a transparent UIButton laid out exactly where the image view is (and with the same autoresizing masks), then wiring up its action / target where desirable. Another way is to add a UITapGestureRecognizer on the image view.

Re: Release a NSWindowController after the window is closed

2011-06-18 Thread Evadne Wu
For http://clang.llvm.org/docs/AutomaticReferenceCounting.html isn’t under any NDA. We should indeed be able to talk about that. :) -ev On Jun 19, 2011, at 03:27, Matt Neuburg wrote: On Jun 18, 2011, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote: Date: Sat, 18 Jun 2011 10:09:13

Re: How can I be so wrong about graphics?

2011-06-06 Thread Evadne Wu
Something along the line of [self convertPoint:aPoint fromView:nil] should do the trick, if you’re very sure that the points were global. Hope it helps. -ev On Jun 7, 2011, at 05:51, Development wrote: Hmm... it looks like it does draw the line... way off in the ether somewhere... I think

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Evadne Wu
It would help a lot if you post code from the failed effort ;). -ev On Jun 3, 2011, at 12:44, Rick Mann wrote: To aid discoverability, we'd like for our app, which presents a UISplitViewController, when launched in portrait mode, to automatically open the popover to reveal the contents of

Re: OS + iOS best practice

2011-06-03 Thread Evadne Wu
Dropbox sync is good for a pile of files, but no more than that. Let’s rebound the requirements: * there’s a single user Core Data app * want an iPad version of the app * the two versions will sync up Given the requirements, and add the fact that I’m pretty sure that Dropbox would keep

Re: Programmatically displaying UISplitViewController popover?

2011-06-03 Thread Evadne Wu
So you have the bar button item and tapping it works; I believe tapping it just invokes its action on its target and there is no much wizardry in thaqt. Is the item we’re talking about the same item that the split view controller sends to you in

Re: OS + iOS best practice

2011-06-03 Thread Evadne Wu
to be read. Perhaps I could store the SQLite file and the images in a directory that can be stored in the dropbox directory? Many thanks for all your help. Sent from my iPad On 3 Jun 2011, at 19:48, Evadne Wu e...@monoceroi.com wrote: Dropbox sync is good for a pile of files

Re: create custom window - NSMenu bar

2011-06-02 Thread Evadne Wu
Hello Martin, It looks like a mutant MAAttachedWindow, not sure though: http://mattgemmell.com/2007/10/03/maattachedwindow-nswindow-subclass — for custom scrollers, I knew that both BGHUDAppKit and BWToolkit has HUD controls, or you can probably roll your own. -ev On Jun 3, 2011, at 02:17,

Re: Silly, can I use @max to get the object with the latest date?

2011-05-15 Thread Evadne Wu
Hi Gustavo, How about setting the sort descriptor’s ascending to NO, and limit the number of fetched objects to one? Something like this…? [request setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@date ascending:NO]]]; // descending = arranged from

Re: viewWillDisappear not being called

2011-04-26 Thread Evadne Wu
It seems like you need to do something when the app resigns from the foreground — if that is the case just listen for UIApplicationDidEnterBackgroundNotification from that view controller? It (kind of) makes things easy that way. As the app enters background, it surely has “disappeared” but

Re: UIView hidden property

2011-04-26 Thread Evadne Wu
When the parent view is hidden, all the stuff contained in it will be invisible as well. So you might like to try sibling views instead of hierarchical views? -ev On Apr 27, 2011, at 10:35, koko wrote: I though I was following a good example ... I do not get the results I expect. I have a

Re: Non-Sub-Pixel Rendering Font Rendering Differences when using Core Animation

2011-04-26 Thread Evadne Wu
This is a wild guess but it worked for me with Core Text on the iPad a long time ago. One or several of these can probably work for you. • CGContextSetAllowsAntialiasing • CGContextSetAllowsFontSmoothing • CGContextSetShouldSmoothFonts •

Re: UI Design on iPad

2011-04-21 Thread Evadne Wu
Hi Bing, Quartz should work most of the time, and you usually *don’t* have to move away from UIKit. I really recommend that you don’t ditch UIKit — check out videos from WWDC 2010 and see how far one can go. Without UIKit, you lose all the features that come for free, which is almost always

Re: scaling a transformed view

2011-04-20 Thread Evadne Wu
Just a wild thought, from an iOS inclined person. It might be worthy to try if you wrap a view inside another, and have the compositor combine the different transforms of the two views, one being a rotation transform and another a scale transform. -ev On Apr 20, 2011, at 23:53, Alexander Cohen

Re: iOS rotate to interface orientation problem

2011-04-18 Thread Evadne Wu
For not using autoresizing masks, is it that you don’t want to use them (theological reasons) or you can’t (pragmatic reasons)? Please just use them if possible, will save lots of wasted hours wrestling the frameworks. Don’t fight the frameworks :) Otherwise, try

Re: add documentation?

2009-12-13 Thread Evadne Wu
. Shortcut just in case: opt-cmd-Œ˜F then delete. Cheers, Evadne Wu On Dec 13, 2009, at 7:18 PM, Chunk 1978 wrote: is it possible to add documentation to xcode? i'd like to add the documentation for OpenAL, as i'm just starting to learn about it, and would like the connivence of command+double

Re: Leopard for development / testing.

2009-12-10 Thread Evadne Wu
Hi Dan, If you already have a copy of OS X, you have everything necessary. Pop the DVD in and look for Developer Utilities. Apple bundles them for free with every copy of OS X. If you’re talking about private betas you’ll need to become an ADC member. ev On Dec 10, 2009, at 12:37