iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
I've been having one of those "I must be doing something stupid" days. The code I'm trying to write needs to pad one string with spaces so that certain characters line up visually with selected characters in a different string (within a view). It seemed like a relatively easy task as long as I

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
A little more investigation: On 2010-12-10, at 2:39 PM, Phillip Mills wrote: > I've been having one of those "I must be doing something stupid" days. [...] > 2010-12-10 14:19:03.936 FontTest[1834:207] .1234567890123456789012. size: > 317.00 > 2010-12-10 14:

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
On 2010-12-10, at 5:38 PM, Ian Joyner wrote: > Is plain Courier not available on iOS? Courier is there but with the same problem. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

UITextField in UIScrollView

2010-12-14 Thread Phillip Mills
I have a number of UITextField objects inside a (subclass of) UIView, which is the content view for a (subclass of) UIScrollView. When the user types into a text field, I dynamically change its size if necessary and reset the content size of the content view. When needed, I also scroll so that

UIActionSheet: Odd behavior / appearance

2010-12-23 Thread Phillip Mills
While attempting to use a UIActionSheet with dynamically added buttons, I seem to have discovered some oddities with how they work...or don't. I create a simple View-based application and add the following code: - (void)showMyActionSheet { UIActionSheet *sheet = [[UIActionSheet alloc] initWi

Re: UIActionSheet: Odd behavior / appearance

2010-12-23 Thread Phillip Mills
On 2010-12-23, at 6:31 PM, Fritz Anderson wrote: > It's not designed to handle that many well The actual minimum number of buttons that cause it to fail is unknown (to me); what I posted was chosen because it was a quick way to demonstrate all three 'surprises'. Considering that it breaks in *

iOS: 'Random' enable/disable

2011-01-15 Thread Phillip Mills
This may be obvious to people, but it took me a while to figure out, so I thought I'd post it in case it saves someone a bit of time. My application is structured with a split view controller as the main interface element. The root view has a primary controller, and a second one which is pushe

iOS: Question about split view

2011-01-16 Thread Phillip Mills
I see a problem with the following scenario: 1) Start with the template project for a split view 2) Add a function where a modal view can be shown over it using a style of UIModalPresentationFullScreen 3) Run in portrait mode 4) While the modal view is being shown, trigger a memory warning 5) Dism

Re: Question about split view

2011-01-17 Thread Phillip Mills
On 2011-01-16, at 10:08 PM, Kyle Sluder wrote: > I'm sure developers would > love if the frameworks *did* manage memory correctly. In the absence of page/swap space for modified memory, I'm not sure what 'correctly' means. :-) To my way of thinking, the problem is that there's no well-defined

iOS: Settings & Security

2011-01-23 Thread Phillip Mills
My application has a settings bundle with eight different things that can be modified. There are three of them that -- in a perfect world -- should be changed only by the person who has the device passcode. The perfect solution would be to have them behave the same as "Reestrictions" in the ge

Re: iOS: Settings & Security

2011-01-23 Thread Phillip Mills
On 2011-01-23, at 10:57 AM, John Joyce wrote: > I can see a scenario where you want an app for classroom use by students that > is configurable only by the instructor but usable by all. Thanks for the profile reference, but my situation is more about a single device that might sometimes be used

UITableView: Delay select recognition

2011-01-27 Thread Phillip Mills
I would like to have either an action occur that's linked to a double-tap in a UITableViewCell subclass *or* the action specified by the ...didSelectRowAtIndexPath:... method of the owning UITableView, but not both. I've encountered some problems with each approach I've tried. - Having the tab

Re: UITableView: Delay select recognition

2011-01-27 Thread Phillip Mills
On 2011-01-27, at 10:42 AM, Luke Hiesterman wrote: > What is this gesture recognizer you speak of pulling out of the table view? > Table view does not use gestures for selection, but you're right that even if > it did, you shouldn't mess with it. For solely educational purposes, I made the (ap

Re: UITableView: Delay select recognition

2011-01-27 Thread Phillip Mills
On 2011-01-27, at 1:06 PM, Luke the Hiesterman wrote: > Knowing that it failed would require a subclass. Thanks. I'll keep that in mind. For now, it seems as if application-specific notifications sent from the cells on single and double taps, combined with ignoring the select in my UITableVie

UIWebView: Scale factor

2011-02-25 Thread Phillip Mills
I'm loading files into a UIWebView on an iPad and need to be able to scroll them programatically to positions in the displayed files. Many of these files are PDF, but generally it could be any of the types supported by loadRequest. I'm able to do what I want using JavaScript if I set up my UIW

Re: Setting a delegate on a UITextField

2011-03-03 Thread Phillip Mills
On 2011-03-03, at 5:01 PM, Jon Sigman wrote: > > What am I overlooking? First question: Is your 'nameTextField' truly non-nil when you set its delegate? Second question: What do you define as "finished editing"? ___ Cocoa-dev mailing list (Cocoa-de

MPMusicPlayerController playbackState

2011-04-20 Thread Phillip Mills
I have a simple program that uses code such as: MPMusicPlayerController *player = [MPMusicPlayerController applicationMusicPlayer]; [player setQueueWithQuery:entityQuery]; [player beginGeneratingPlaybackNotifications]; [player play]; In case it matters, 'entityQue

UIWebView: Unexpected NSURLErrorCancelled

2011-04-26 Thread Phillip Mills
I'm trying to debug something in an iPad app with very limited information and hoping that the symptoms will ring a bell with someone. This is based on a report from one user and is nothing I've been able to reproduce. I have a UIViewController subclass that shows a UIWebView and is also its

Re: UIWebView: Unexpected NSURLErrorCancelled

2011-04-26 Thread Phillip Mills
On 2011-04-26, at 8:52 AM, Jeff Johnson wrote: > You can get this "error" when the page automatically redirects via > Javascript. I would recommend just ignoring the error, treating it as a > non-error condition. I'm coming around to the idea that your solution is the right one. However, in t

iOS: Data sharing/upgrade

2011-04-29 Thread Phillip Mills
I have an application that uses iTunes file sharing for documents (PDF, rtf, Pages...) and Core Data with sqlite for storing metadata about those documents. I'm thinking of creating a simpler version with the same essential capability but without some of the advanced features, partly to promote

Re: add crlf to UITextView

2011-05-25 Thread Phillip Mills
On 2011-05-25, at 2:10 PM, koko wrote: > > How does one get crlf into a UITextView? I've put things on a new line by doing essentially: m_notes.text = [m_notes.text stringByAppendingFormat:@"\n\n%@", [m_backing objectAtIndex:index]]; At which point, the object would be @"Text to add". I'm not

Re: Trying to customize UITableViewCell with IB but having odd exception

2012-01-28 Thread Phillip Mills
On 2012-01-28, at 1:55 AM, James West wrote: > I get -[UIAccessibiltyBundle setProduct:] unrecognized selector sent to > instance It looks as if the cell has been deallocated and its address reused to hold a different kind of object. (UIAccessibiltyBundle) If it's not obvious how this is happen

Re: WTF is happening?

2014-12-13 Thread Phillip Mills
Why do you think the problem is with “respondsToSelector:”? The error says you’re accessing past the end of a string. On Dec 13, 2014, at 10:20 AM, Maxthon Chan wrote: > This got me scratching my head, hard. Why would class_respondsToSelector() > crash? (BTW this is used in a class search loo

UIKit: Customized text display

2010-09-07 Thread Phillip Mills
I'm looking at the feasibility of an iPad application. A primary view would allow for the entry of lines of text, paired with lines of annotation. Annotation lines and text lines would have different attributes: height, font, edit methods In fact it might be better for the annotation line

UITableView Selection

2010-11-02 Thread Phillip Mills
I have an application with a split view, master/detail design. The 'master' items are dynamically created and vary in number. When I start the application, I load these for use by the table view's data source during the root view controller's viewDidLoad and everything works quite well. Excep

iPad: Multiple master/detail views

2010-11-05 Thread Phillip Mills
I have an application that uses a few different master/detail relationships within its model and I'm having trouble figuring out how to represent that in the UI. Conceptually, I want a toolbar that is always available, with some buttons that choose what kind of thing should be displayed (plus s

iPad: Distribution of documents

2010-11-22 Thread Phillip Mills
I'm working on an application that lets a user create 'documents' that will live in the app's Documents directory. I'd like to distribute some sample documents that would be treated the same as anything the user creates, but haven't seen anything that suggests I can have XCode populate Document

iPad: UI Implications

2010-11-26 Thread Phillip Mills
After having written a couple of simple iPad apps to investigate certain features, I'm now close to being feature-complete on my first serious application. I'm finding that the lack of a standard menu for centralizing actions is the hardest thing to get used to. As a result of that, I've adopt

Re: iPad: UI Implications

2010-11-26 Thread Phillip Mills
On 2010-11-26, at 11:34 AM, Ricky Sharp wrote: > At a high level, you don't "go from Mac to iOS". i.e. you don't attempt to > port, clone the UI, etc. Actually, I'm going from Mac to iOS at an even higher level: programming style and patterns of object interaction. In other words, this applic

iOS: UIWindow orientation

2010-11-29 Thread Phillip Mills
While attempting to track movement during a long press, I was surprised to discover that the x direction of an application's UIWindow seems to be for the portrait x dimension no matter how the device is turned. Using [recognizer locationOfTouch:i inView:[recognizer view]] matches the apparent x

Re: navigation bar tint color issue on iOS 4.2

2010-12-03 Thread Phillip Mills
On 2010-12-03, at 11:13 AM, Matt Neuburg wrote: > On Thu, 02 Dec 2010 22:03:50 +0800, Kin Mak said: >> >> I have just upgraded my XCode to 3.2.5 and built and linked my iPad app >> using iOS 4.2. However, there seems to be a bug regarding navigation's bar >> tint color and popover: >> >> I a

Re: navigation bar tint color issue on iOS 4.2

2010-12-03 Thread Phillip Mills
On 2010-12-03, at 1:15 PM, Phillip Mills wrote: > I can affect the tint of the buttons but not the toolbar or navigationBar > areas shown in the view controller that the popover is presenting. Just as a side note, it seems interesting that the toolbar reverts to its intended appearanc

Re: navigation bar tint color issue on iOS 4.2

2010-12-03 Thread Phillip Mills
On 2010-12-03, at 3:10 PM, Matt Neuburg wrote: > But obviously this is something the framework would rather you didn't do. :) ...and if the framework and IB had agreed that it was a bad idea, I probably wouldn't have bothered trying...for those hours. :-)__

iPad: Some popover problems resolved

2010-12-04 Thread Phillip Mills
Yesterday I was getting frustrated that nothing I did in Interface Builder produced a popover that looked right when I rotated my split view application to portrait orientation. Not only did it not look the way I wanted, I couldn't get it back to its default appearance either. It had decided t

Re: Sandboxing. WTF?

2012-05-29 Thread Phillip Mills
On 2012-05-29, at 10:34 AM, Kyle Sluder wrote: > It solves the problem of applications being unable to express their intended > boundaries to the operating system. I'm honestly curious When did that become a real-world problem for Mac users? (And if it's anticipatory, what's different now

Re: Sandboxing. WTF?

2012-05-30 Thread Phillip Mills
On 2012-05-29, at 11:30 PM, Quincey Morris wrote: > A number of commentators have jumped into the thread to declare, in effect, > that the sandboxing could *never* work. Such a point of view seems > inexplicably to ignore the fact that there is a platform out there already > (iOS) for which san

Prevent display of PDF controls in a WebView

2012-09-02 Thread Phillip Mills
In an OSX application, I use a WebView to display a variety of file types. When the type is PDF, something within Cocoa (PDFKit?) intercepts mouse movement in the lower portion of the screen and responds by displaying a translucent gray view with clickable areas that give options for the user to

Re: Prevent display of PDF controls in a WebView

2012-09-02 Thread Phillip Mills
On 2012-09-02, at 4:16 PM, Mike Abdullah wrote: > Have you investigated supplying your own PDF view. Webkit doesn't really > offer anything about its built in PDF view beyond its existence. I thought about that. I've created my own view/representation pairs for two other (simple) data types b

Client/Server Design

2010-05-05 Thread Phillip Mills
I have ideas for a number of different applications that share a general architecture: use an iPhone as a remote data-collection front end to a Mac app that does more complicated processing, or to a general purpose application such as a spreadsheet or database, or to a variety of apps that each

Re: Client/Server Design

2010-05-05 Thread Phillip Mills
On 2010-05-05, at 2:24 PM, Jens Alfke wrote: > While the device is docked the user can use iTunes to (clumsily) transfer > files between the Mac filesystem and the app’s Documents folder. That seems so basic (without the 'clumsy') that I have trouble believing that it hasn't existed forever.

Dictionary interface

2009-07-15 Thread Phillip Mills
I've been searching the Cocoa documentation pages on extending and interfacing with Apple applications, hoping to find notes related to the Dictionary application. An API that finds words using a soundex-type function would be nice. That, plus a plugin method to add a UI item similar to "Dict

Re: Dictionary interface

2009-07-15 Thread Phillip Mills
- Message from glgue...@amug.org - You might want to explain exactly what you tried. Sure. http://developer.apple.com/reference/Cocoa/idxAppleApplications-date.html Since I'm not really interested in spell checking, but rather another Dictionary-based service it seemed like a

Re: Sending a Selector to another Class.

2009-10-21 Thread Phillip Mills
- Message from joshua.garn...@yahoo.co.uk - but i get a warning in xcode, http://cld.ly/7c4la. (JGManagedObject is what replaces otherClass) That one is usually a case of not importing the JGManagedObject header or not declaring the class method in that interface. __

Objects from XML

2009-12-23 Thread Phillip Mills
I'm looking at converting some C++ code to Objective C. A set of utility classes that I'd written use the expat C library to convert XML into an object graph. As I experimented with switching that over to use NSXMLParser instead, it dawned on me that I was looking at creating a simple-minded,