How do you set the text in an NSTextView?

2010-05-07 Thread G S
Hi all. I have a couple of tabs on my window, each of which has an NSTextView. You have to declare the IBOutlet variable in the app delegate as an NSScrollView; only by doing that can you get the outlet to show up on the Control-drag to the widget in Interface Builder. So I have the outlets conn

Re: How do you set the text in an NSTextView?

2010-05-07 Thread G S
Thanks for the replies, guys. On Fri, May 7, 2010 at 9:20 AM, Jens Alfke wrote: > -setString:. It’s declared in the superclass NSText, which makes it easy to > miss. (NSText is an abstract class and really only exists for historical > reasons.) > > This doesn't do anything, because the IBOutlet

Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?

2011-09-16 Thread G S
Hi all. I'm seeing lots of duplicated keypresses on Lion. On my laptop, they're often (but not always) coincident with a little blip of disk activity; it's as if the system queues the keypress while it's momentarily busy, and then issues it twice when the disk blip is over. If I press a key duri

Re: Does an iOS app's UI freeze when going into background?

2011-09-21 Thread G S
> UIKit takes a snapshot of the view hierarchy as it was when your application > goes into the background and uses that when it comes back to the foreground. > It remains until your UI has had a chance to redraw itself. Thanks, David. I suspected as much. Looks like there's nothing to be done

What is the likely reason why objects aren't being loaded from a XIB?

2011-09-23 Thread G S
Hi all. I have a pretty simple iPhone XIB with of course the main view, then a toolbar, a UITableView, and a custom grid view. The controller (owner of this file) handles an initWithNibName and calls up through one superclass to UIViewController's initWithNibName. I've verified that this is bein

Re: What is the likely reason why objects aren't being loaded from a XIB?

2011-09-23 Thread G S
Thanks for the responses. The problem turned out to be that my view controller's parent class had defined loadView, which didn't call the base (UIViewController) loadView (and indeed, the documentation says that a loadView method should NOT call the base). Thus the XIB-loading mechanism was never

How do you enable a view controller to be instantiated programmatically or from a XIB?

2011-09-23 Thread G S
As a follow-up to my question about objects not being loaded from a XIB: The view controller class I was using was not designed to be stored in a XIB; it had no initWithNibName method and did have a loadView method. The Apple doc makes it clear that these can't coexist in the same class. So is i

Re: How do you enable a view controller to be instantiated programmatically or from a XIB?

2011-09-25 Thread G S
I'm using an open-source controller that presents a grid of thumbnails. It is designed to be full-screen, so there was no XIB involved. Now I want to make it partial-screen and add some other controls with IB. ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: How do you enable a view controller to be instantiated programmatically or from a XIB?

2011-09-25 Thread G S
I should add that I've subclassed the grid controller to handle the additional controls I'm adding to the view. The controller will not be stored in the XIB. I had to change the parent grid controller class to handle initialization from a XIB, which included getting rid of loadView. Now it can't

How do we get rid of "application downloaded from the internet" warnings?

2011-10-31 Thread G S
Hi all. Posting this here because I don't know where else to ask, and it's vaguely development-related because I was simply trying to browse icon files for my app. I downloaded a set of icons. If I select all the PNGs in Finder, right-click, and say Open, I get this asinine warning and then two

Re: How do we get rid of "application downloaded from the internet" warnings?

2011-10-31 Thread G S
> xattr -d com.apple.quarantine file... At least that one still works! Thanks, Ron. ___ 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(

Re: How do we get rid of "application downloaded from the internet" warnings?

2011-11-03 Thread G S
All of the items were PNGs. I viewed them all in Adobe Bridge after Preview wouldn't open them. And changing that attribute in fact did NOT work; I'm still getting the warning. On PNGs. Ridiculous. Thanks for the insight though, guys. ___ Cocoa-dev

Is MKMapView just kinda messy?

2011-11-19 Thread G S
Hi all. I've been wrestling with a crash in our app for a while now. It occurs when an MKMapView calls its delegate to get an annotation view. The problem is, there shouldn't be any MKMapView in existence. The view containing it has long since been popped. The MapView was part of a view loaded f

Re: Is MKMapView just kinda messy?

2011-11-19 Thread G S
A list member was kind enough to point this out: "Before releasing an MKMapView object for which you have set a delegate, remember to set that object’s delegate property to nil. One place you can do this is in the dealloc method where you dispose of the map view." Unfortunately that's not in the

Re: Is MKMapView just kinda messy?

2011-11-19 Thread G S
> "Examples of weak references in Cocoa include, but are not restricted to, > table data sources, outline view items, notification observers, and > miscellaneous targets and delegates.  [. . .] Likewise, when a delegate > object is deallocated, you need to remove the delegate link by sending a

Why does my app suddenly return nil for the version string?

2011-12-11 Thread G S
Hi all. My app just started crashing on launch, and I traced it to this call returning nil: NSString* versionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey]; Anyone know why this would suddenly start happening? Looking in the app's plist, there

Re: Why does my app suddenly return nil for the version string?

2011-12-11 Thread G S
Turns out there's an Xcode bug behind this. Hard to imagine, I know. We don't use build numbers; just version numbers. I noticed that the target summary's Version field was blank, but the Build field wasn't. Swapping those states led Xcode to inexplicably remove the version from the plist entire

Our app can't store a simple key/value pair in iCloud. Any idea why?

2011-12-12 Thread G S
Hi all. I've configured our app for iCloud usage and push notifications with the appropriate entitlements, under a provisioning profile that is set up for these, and a developer profile that's associated with this provisioning profile. The application identifier matches what's specified in the pr

Adding an observer to an NSOperation crashes my app.

2012-01-13 Thread G S
Hi all. Working on an iPhone app and encountered a stumper. I have various kinds of operations (derived from NSOperation) to do async queries over the Internet. As is the norm, I determine when they're finished by observing their isFinished property, and getting the results in observeValueForKeyP

Re: Adding an observer to an NSOperation crashes my app.

2012-01-14 Thread G S
Thanks, Mike. There's nothing in the console.  The whole call stack at the time of the crash is this (when I create the operation on the main thread): #0 0x00396336 in -[NSOperation observationInfo] () #1 0x0036823a in _NSKeyValueRetainedObservationInfoForObject () #2 0x00379c98 in -[NSObject(NSK

Re: Adding an observer to an NSOperation crashes my app. RESOLVED

2012-01-14 Thread G S
Thanks to all who answered. It was a simple boneheaded maneuver: Failing to call [super init] in the initialization method of my derived class. DUH. Works fine now! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

While running our iPhone app, the screen sometimes goes white and locks up. Any idea why?

2012-01-20 Thread G S
This just started happening recently, but then again I've made lots of changes to our app. It's not very frequent, and so far there's no discernible pattern. But every once in a while, the entire phone screen will turn white and there's no way to get rid of it in the app. There's no status bar,

Re: While running our iPhone app, the screen sometimes goes white and locks up. Any idea why?

2012-01-23 Thread G S
Good info. Thanks, guys! ___ 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/Update your Subscription

Re: While running our iPhone app, the screen sometimes goes white and locks up. Any idea why?

2012-01-24 Thread G S
Did the crash-log-generation procedure and got this after our screen went totally white: Unknown thread crashed with unknown flavor: 5, state_count: 1 Then we have these, which apparently result from force-quitting the app during the white screen: Exception Type: 0020 Exception Codes: 0xdea

Anybody know what com.apple.locationd.registration.xpcq is?

2012-01-25 Thread G S
Our app has suddenly started exhibiting a strange delay when resuming from the background; it gradually takes longer and longer to reactivate the UI. Eventually, the app takes several seconds to resume, and crashes for failure to resume in time. I looked at the crash log, and found four threads w

How do you run an app on the device with Instruments?

2012-01-29 Thread G S
Hi all. After finding an alleged answer on the Web (since the Apple documentation refers to the nonexistent Run > Start with Performance Tool menu in Xcode), I still can't get my app running in Instruments. Choosing Profile from the Product menu does cause Instruments to prompt for a template, but

Re: How do you run an app on the device with Instruments?

2012-01-30 Thread G S
So... no one knows how to launch an app on the device with Instruments? Thanks anyway. ___ 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-admin

Re: How do you run an app on the device with Instruments?

2012-01-31 Thread G S
Thanks guys, but you can't attach to a process with Leaks. This turned out to be a bug in Xcode 4.2, apparently. The app simply never ran. Someone mentioned that Xcode 4.2.1 existed (I must've missed the notification somehow), so I downloaded it and installed it. Instruments and Leaks now work,

Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
Hi all. Our app is crashing on the deallocation of a custom control, which resides on a view that's pushed onto the navigation controller's stack. The problem is that this view is almost never deallocated, even long after the user dismisses it with the Back button. It's not a leak, so I guess th

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
Thanks for the response. > Even *if* deallocation occurs later, that shouldn't cause a crash. > I'm not suggesting that this is what's causing the crash. It's simply preventing me from debugging the problem, because I can't reproduce it on demand. It's just a crash in the control's dealloc met

Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
> > > It's just a crash in the control's dealloc method: > > 0x0019f56e -[ThumbStripView dealloc] > > But what is the crash? EXC_BAD_ACCESS? > Don't know. The above is all that appears in the crash log, and it's so hard to reproduce that I've never seen it while running under the debugger. If s

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
On Wed, Feb 8, 2012 at 6:41 PM, Alex Zavatone wrote: > I'd check to see if it's already been deallocated. > > Thanks Alex. I don't know which item you mean (the control or its parent view), but I have breakpoints set in both of their dealloc methods and those breakpoints do work. So I know the

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
> > AH. > > There you go. You gotta realize that if you release an object more than > once, that WILL end up crashing, though not necessarily when you expect. > Hm. I didn't say this (because I thought it was obvious) , but I released it three times in succession *as an experiment to force t

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-09 Thread G S
Thanks again, Conrad. > Are there *any* connections to your control (other than the > superview/subview relationship)? I see a _NSSetObjectValueForKeyInIvar > in your retain trace, which just be doing something internal, but it > makes me wonder. > There is an IBOutlet for it, but that's it. I

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-09 Thread G S
I have a breakpoint in the problematic object's dealloc method, and it is never called when I'm testing it, even when I know that the parent has been deallocated. Conveniently, the deallocation of the control only occurs when the phone is running untethered (not under the debugger). It's possible

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-09 Thread G S
Made an interesting discovery. If I invoke a screen modally over the problematic one, simulate a low-memory warning, and then dismiss the modal screen... the control gets deallocated. After several attempts it will crash with a bad access (apparently at calling [super dealloc]). Anyway, this is

Instruments won't symbolicate the call tree. What now?

2012-02-10 Thread G S
Hi all. I'm looking for leaks in my iPhone app and apparently finding some. Unfortunately, Instruments will not show my app's symbols, making it pretty worthless. I've tried "Re-Symbolicate Document", but this does nothing. When I navigate to the location of the app and dSYM files (which do exi

How are views supposed to reload after being nillified by memory warnings?

2012-02-28 Thread G S
Hi all. View controllers that are buried in the navigation stack (or otherwise have their views obscured) set their views to nil when they receive a memory warning. This makes sense temporarily, because the views aren't visible. But when the overlapping views are dismissed, how is the nillified

Re: How are views supposed to reload after being nillified by memory warnings?

2012-02-29 Thread G S
The Apple doc says, "If the view controller has an associated nib file, this method loads the view from the nib file. A view controller has an associated nib file if the nibName

Re: How are views supposed to reload after being nillified by memory warnings?

2012-02-29 Thread G S
Thanks guys. The problem happens with no override of loadView. I only overrode it to verify that it was being called after the memory warning, and to verify that nibName was set. In viewDidLoad, I just instantiate a data collection and progress indicator. _

Re: How are views supposed to reload after being nillified by memory warnings?

2012-02-29 Thread G S
Well, I've verified that the view controller has the correct name of the nib when it tries to reload the view after a memory warning. So this seems like a pretty big Cocoa bug, which unfortunately only one (remote) person on our team can reproduce reliably. I know Instagram encountered this same

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-01 Thread G S
OK, after our controller's view gets blown away on the memory warning, it does appear to be reloaded from the nib when it's time for redisplay. At least the IBOutlet members are non-nil in viewDidLoad (I nilled them on viewDidUnload). So it appears that the controller's view is reloaded from the

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-02 Thread G S
> > How do you know the white view is screen-sized and has no superview? > Actually a UIView which you can see and yet has no superview is probably > just the UIWindow itself. > I write info about it to a log, in viewDidLoad. How about the view which has just been loaded? Does it have a superview

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-04 Thread G S
> > In the vast majority of cases where I've seen this behavior, it is because > in your delegate handler for the UIImagePickerController, you assign the > returned image directly to a UIImageView that you have in your view > hierarchy. If you've recently gotten a memory warning, then this image vi

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-04 Thread G S
Thanks for the feedback, Roland. On Sun, Mar 4, 2012 at 6:07 PM, Roland King wrote: > I would suspect that and change it so that either > > 1 the new view controller is pushed by the viewDidDisappear of the > dismissed modal one or > This would require excessive knowledge of the delegate contro

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-05 Thread G S
> > No. But if you've presented a modal view controller, your entire view > hierarchy (self.view) has been ripped out of the window, and if a memory > warning arrives, then self.view will be set to nil. What happens next > depends on if you implemented -viewDidUnload properly or if your view > refe

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-05 Thread G S
Well, at any rate, I have no such subview property. I've also found that among my series of modal presentations, there's a view that's displayed modally, whose user interaction works just fine, but whose viewWillAppear and viewWillDisappear methods are never called. As far as I know, it could be

How do we know if iCloud actually contains a key/value pair?

2012-03-05 Thread G S
When our iPhone app is launched for the first time, it checks the user's iCloud account to see if he has installed our app on another device. If so, he'll have a unique ID that we've stored in his iCloud account, which is a database key that we use to manage his online content. We grab it and sto

Not sure about autorelease pools in NSOperations

2011-04-11 Thread G S
Hi all. I haven't really managed autorelease pools explicitly before, but the NSOperation doc says to use one in your NSOperation derivatives. My question is where to put it. The example shows the pool being created and released in the main() function, but I don't really allocate anything there.

Re: Not sure about autorelease pools in NSOperations

2011-04-12 Thread G S
Thanks for that thorough explanation, Wim. In most of my operations I'm just calling C++ objects, so I doubted that I need the pool. So far I'm pleased with operations and queues. Pretty cool and not hard to use. Not too portable though, I guess... Gavin ___

Still have to use a lock to protect the data backing a UITableView?

2011-04-15 Thread G S
Hi all. I have a tableview that displays data from a collection of C++ objects. In the background, I download an updated collection occasionally, then reconcile it with the one being shown by the tableview. I coded it so the list reconciliation occurs on the main thread, but is that enough to pr

What state does an iOS app retain after being quit that causes it to crash on relaunch?

2011-05-10 Thread G S
We have a network-dependent app that will suffer from lengthy delays if connectivity is poor. We've found that if the user quits the app during a long network activity, the app will often crash upon its next launch. Why? It shouldn't be retaining any state between launches. Thanks for any insig

Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?

2011-05-10 Thread G S
Ah, that sounds vagely familiar now. Thanks for the pointer, Conrad. ___ 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.c

Why do things wind up under the nav bar after rotation?

2011-05-26 Thread G S
Hi all. I'm having a layout problem on all my screens after they're rotated. It seems as though the view loses all knowledge of the navigation bar at the top after a rotation, so subviews are shoved up under it. Check it out: http://i.stack.imgur.com/mFALa.png It's not just this view. It also

Re: Why do things wind up under the nav bar after rotation?

2011-05-26 Thread G S
Resolved. Turns out that doing this after rotation will re-align everything: [self.navigationController.view layoutSubviews]; Kinda seems like the framework would call that, but I guess not. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Why do things wind up under the nav bar after rotation?

2011-05-26 Thread G S
>> Kinda seems like the framework would call that, but I guess not. > > It should and this shouldn't be necessary. A bug report would be good here. Yes, I'm going to file one. While this workaround straightens the layout after rotation, it's a little janky because things snap into place after the

What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread G S
Hi all. I'm trying to implement some robust network-failure handling in my iPhone app. The test of whether my host is reachable returns YES even when connected to a router that has no Internet connection. Apple's docs say, "A remote host is considered reachable when a data packet, sent by an app

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread G S
Thanks for the response, Greg. > There are circumstances where a subset of the Internet's hosts may be > reachable. For example, you may be able to reach link-local names without a > broader Internet connection. Or you may be able to reach a host behind a VPN > only when the VPN is active. (I d

Why is my app generating warnings about "Deregistering for sleep notifications"?

2011-06-03 Thread G S
Hi all. Looking over some logs from my phone, I'm seeing lots of : [Warning] Deregistering for sleep notifications when we have not registered and also Warning>: [Warning] IORegisterForSystemPower failed I'm also getting "deny iokit-open RootDomainUserClient." It's pretty much the combo that

So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-16 Thread G S
My app is crashing after the user presses the Back button in the navbar to dismiss a page that has a UIWebView on it, before the Web view has finished loading. The Web view subsequently tries call its delegate to say that the content has finished loading. In the Apple docs I see this: "Important

Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Hi all. I put an MKMapView in my UI and tried to declare an IBOutlet for it, but compilation fails with this error, in MKGeometry.h: "'isinf' was not declared in this scope" The line it's griping about is UIKIT_STATIC_INLINE BOOL MKMapRectIsNull(MKMapRect rect) { return isinf(rect.origin.x)

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> The man page for "isinf" says you will need to #include and link > with -lm. Thanks, but this is in Apple's code (MKGeometry.h). If I right-click on isinf in the flagged line and jump to the definition, it finds it in math.h. ___ Cocoa-dev mailing

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
This is ridiculous. The whole project is at a standstill because of this nonsense. ___ 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: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
First of all, thanks a lot for the responses. I have compiled a couple of examples, and they do build. That makes this all the more perplexing. The MapCallouts tutorial is one that I tried. In their file that uses MKMapView, these are the import statements: #import #import Now the import state

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
A search reveals that there are 29 math.h files on my system. Of those, these don't clearly include isinf: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/c++/4.2.1/tr1 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/includ

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> Are you compiling this file as Objective-C++? Yes, the implementation is an mm file. ___ 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-admin

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Thanks very much for that analysis, Kyle. This blows. All of our business logic is written in C++, which I'd think is a common scenario (the paucity of "business" logic in the app store notwithstanding). This problem is occurring in a UI controller that needs to show information from a C++ object.

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> You should file a bug report anyway, because MapKit's headers should be > compatible with Objective-C++. I will. The problem is that they're just going to bounce it back to me with "please provide a project that demonstrates this", and since I don't know where cmath is coming in, I don't know

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> If you preprocess your source file, the output will show every include and > where it came from. Not easy to interpret, but it's all there. How do you do that? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Good grief. Anyway, thanks for all the help and time it took. I really appreciate it! For now, my workaround was to paste #define isinf(x)\ (sizeof (x) == sizeof(float )?__inline_isinff((float)(x))\ :sizeof (x) == sizeof(double)?__inline_isinfd((double)(x))\

What REALLY determines which application opens a file?

2010-09-07 Thread G S
Hi all. I'm trying to write a Movie Importer component, and I'm finding a perplexing pile of file-association methods in the process. The current method of file-to-application mapping is supposed to be UTIs, but I don't think this is working for me. I was told that to get QuickTime Player X to o

Re: What REALLY determines which application opens a file?

2010-09-07 Thread G S
Wow, I didn't realize this was such a mystery. ___ 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/Up

Re: What REALLY determines which application opens a file?

2010-09-07 Thread G S
Hi Quincey. Thanks for your response. > It's not clear from your original post whether you know that files don't > *have* UTIs as metadata. They have extensions or file types as metadata, and > the translation from file metadata to UTI is handled by Launch Services after > aggregating all of t

Re: What REALLY determines which application opens a file?

2010-09-07 Thread G S
Very good summary, thanks. "what kinds of files the application is aware of or wants to make other applications aware of." Which is exactly what I want to do; I need to make QuickTime Player aware of a video-file type that I'm providing a Movie Importer component for. I'm told that the only way

Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread G S
Hi all. In Interface Builder 3.2.3 I dragged an NSPopUp onto a view and set it to drop-down mode, then simulated the interface. It doesn't work: The default control contains three items, but if you select one in drop-down mode, it doesn't stick. If you switch the control to pop-up mode, it works

Re: Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread G S
On Thu, Sep 16, 2010 at 5:01 PM, Kyle Sluder wrote: >>if you select one in drop-down mode, it doesn't stick.  If you switch the >>control to pop-up mode, it works fine. > > That's precisely what pull-down buttons are supposed to do. See the > HIG: > http://developer.apple.com/library/mac/documen

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread G S
"Pull-down controls are intended to be filled with commands. They do not behave like popup controls. If you want the popup behavior, you must have the popup appearance." You mean APPLE'S pop-up behavior. The up/down decision should have nothing to do with any other operational mode of the control

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread G S
> Welcome to the modern Mac platform where the frameworks try to ensure a > coherent user experience, especially for basic controls. How is this behavior "coherent"? As has already been noted, it's inconsistent between drop-down lists and combo boxes. Also, nothing indicates to the developer wh

Why isn't this delegate protocol being seen?

2010-10-04 Thread G S
Hi all. I'm getting a compiler warning that this delegate protocol isn't defined, when it most certainly is defined in the CLLocationManager.h file that I've included: #import #import "CoreLocation/CLLocation.h" #import "CoreLocation/CLLocationManager.h" @interface MyController : UIViewControl

Re: Why isn't this delegate protocol being seen?

2010-10-04 Thread G S
> No it's not. CLLocationManagerDelegate is defined in > CLLocationManagerDelegate.h. CLLocationManager.h only includes a > forward reference to the protocol. Aha, right-O. Thanks. I had just done a quick search and found the string in there, and left it at that. I have a bunch of examples that

The dreaded "UITableView won't refresh" problem.

2010-10-12 Thread G S
Hi all. I have a controller derived from UIViewController. It contains an IBOutlet UITableView*, and declares and implements the necessary delegate protocols (cellForRowAtIndexPath and numberOfRowsInSection). The UITableView resides on a view by itself. I have the delegates connected to the fil

Re: The dreaded "UITableView won't refresh" problem.

2010-10-12 Thread G S
Wow, nobody has seen this problem? Lovely. ___ 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/Updat

Re: The dreaded "UITableView won't refresh" problem.

2010-10-12 Thread G S
> You expect a mailing list consisting of people reading in their spare time, > and writing out of charity, most of whom have been doing their paying jobs in > the few hours since you first posted, to drop everything to respond? Lovelier > still. Your assumptions are incorrect. Thanks to every

Re: The dreaded "UITableView won't refresh" problem.

2010-10-13 Thread G S
>> I'm not supposed to call reloadData in that function, am I? > > No. You would get an infinite loop. Yes indeed. Well, this has proven to be a stumper. In case the XIB was corrupted, I deleted the whole thing and started over. Same result. It's a deal-breaker, since this is the main interfac

The dreaded "UITableView won't refresh" problem: SOLVED.

2010-10-13 Thread G S
Turns out to be a simulator bug, or a bug in the way Xcode is loading apps into the simulator. The simulator was showing a UI from a XIB that had long since been deleted from disk and removed from the project. And yet the compiled nib from it was turning up in the app package, even after cleans.

Why are spaces in the source directory's name killing device builds but not simulator builds?

2010-10-23 Thread G S
Hi all. I'm having a perplexing problem, where device builds issue a bunch of warnings about directories not being found, but it's because the spaces in the volume name are not being handled correctly. This only happens in device builds but not simulator builds. If you look at the link commands,

What causes NSFileManager's stringWithFileSystemRepresentation to return nil?

2010-10-26 Thread G S
Hi all. I'm giving this function what appears to be a perfectly good path: /Users/me/Library/Application Support/iPhone Simulator/4.2/Applications/58BD5465-FD47-49E3-83AC-242961559F48/Library/Caches/4320_th.jpg and it returns nil. If I call UIImage's imageWithContentsOfFile with the same path,

Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?

2010-10-27 Thread G S
Thanks for the replies, guys. The origin of the string was an std::string, so the length calculation should be accurate. And yes, it originally comes from a query to determine the cache directory for my iPhone app. I'm trying to keep as much of the app cross-platform as possible, so I'm using a

How to update all views when underlying data changes?

2010-11-29 Thread G S
Hi all. I'm writing an iPhone app that interacts with a database over the Web using XML, and PHP on the server side. Obviously, delays in downloading data are frequent, so I'm using Grand Central Dispatch to do a bunch of it asynchronously. This brings up a basic question: How do I notify all co

What's the recommended way to have multiple views on one tab?

2010-12-09 Thread G S
Hi all. I find that I need to present different screens of information under one tab, depending on whether the user is "logged into" our app's service. If the user logs in (for which I can present a modal view), the entire display for the tab needs to change. What's the best way to do this? Rig

Re: What's the recommended way to have multiple views on one tab?

2010-12-09 Thread G S
On Thu, Dec 9, 2010 at 2:49 AM, John Joyce wrote: > Here you go Gavin: > Creating and Managing a View Hierarchy > This is in the View Programming Guide For iOS Thanks, John. Although that link didn't work, I did look at what seems to be the current equivalent area of the docs. One extra require

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

2011-01-16 Thread G S
Hi all. The Apple doc says this is possible, but it doesn't work when you want the second modal view controller presented immediately. If you present a modal view controller that immediately presents another one in its viewDidLoad method, the second one never shows up. No errors are reported, so

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

2011-01-16 Thread G S
On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman wrote: > viewDidLoad is called the first time the view property of the vc is accessed > - that's when loading happens. There is no guarantee that the view is in a > window at that time, and presenting a modal vc on a vc whose view is not in a >

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

2011-01-16 Thread G S
> Or just use delayed performance. I use delayed performance a *lot*. Like > whipped cream, it covers a multitude of sins. m. Hm, I'll have to remember that. Whipped cream on my misdeeds, that is. Meanwhile, the viewDidAppear method does work; but it gets into an endless loop because when you d

UIImagePickerController is permanently blowing away the phone's own status bar.

2011-01-17 Thread G S
At least for the duration of the app. I'm presenting a UI that's as close as I can come to the built-in camera app's: A controller brings up UIImagePickerController in "camera" mode, with an overlay at the bottom that has a "library" button on it. If the user presses the Library button, the overl

Re: UIImagePickerController is permanently blowing away the phone's own status bar.

2011-01-17 Thread G S
I was able to work around it with [UIApplication sharedApplication].statusBarHidden = NO; ___ 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-ad

Anybody have problems with plist settings not getting into or being honored by phone app?

2011-01-17 Thread G S
Hi all. I added a couple of settings to my iOS project's plist: "app does not run in background" and "icon already has gloss effects". I noticed that they weren't being honored in the device builds, although they appeared to be honored in the simulator builds. First I found that Xcode created th

The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.

2012-03-16 Thread G S
The situation is pretty simple: a view controller at the top of our navigation controller's stack presents a modal view controller. When the user's done with the modal view, he makes one of several choices that call the modal controller's delegate and cause the delegate to dismiss the modal view.

Re: Why so many public properties all up in my grizzle?

2012-03-16 Thread G S
Thanks for asking this, Brian. I've wondered the same thing, and in fact I went through my code and removed almost all property declarations from my view controllers. Since most properties are declared as "retain", you're just increasing your bookkeeping to avoid leaks. Not to mention the sheer

Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.

2012-03-16 Thread G S
On Fri, Mar 16, 2012 at 7:53 PM, Roland King wrote: > You've sure had a lot of problems with this! > Yeah, this is ridiculous. Researching it, I found that Instagram had the same white-screen problem for a while. Unfortunately, I've found no way to contact them. There's clearly something wron

  1   2   >