Re: Wanted: new owner for Mac apps

2013-05-09 Thread Charles Srstka
On May 8, 2013, at 7:25 PM, Alex Zavatone z...@mac.com wrote: On May 8, 2013, at 8:17 PM, Luther Baker wrote: Steve's entire thread was about giving away his source code -- he even keeps us up to date as it starts to leave his hands ... and you read snippy into that last comment? ... and

Re: Wanted: new owner for Mac apps

2013-05-09 Thread Steven Degutis
Alex, I think my favorite part of your response is that, what I said wasn't something to be vaguely recalled, a lost moment enveloped in a foggy memory, a fragment of a conversation hopelessly swallowed by the past. There was no reason to settle for remembering something to the effect of it. On

UILabel with superscripts

2013-05-09 Thread Koen van der Drift
Right now I am using an UILabel with unicode symbols to show strings with superscripts, something like this: NSInteger base = 2; myLabel.text = [NSString stringWithFormat: @%d\u00B2 = %d, base, base*base]; But it kinda looks ugly in my opinion, the subscript is too low relative to the

Re: UILabel with superscripts

2013-05-09 Thread Diederik Meijer | Ten Horses
Have you tried loading a NSAttributedString? It's iOS 6 only, a quick search implies you can set kCTSuperscriptAttributeName to specific ranges in your string... Verstuurd vanaf mijn iPhone Op 9 mei 2013 om 14:04 heeft Koen van der Drift koenvanderdr...@gmail.com het volgende geschreven:

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-09 Thread Jens Alfke
On May 8, 2013, at 6:25 PM, Andy Lee ag...@mac.com wrote: Yup. I had edge-case crashes too (fortunately reproducible one I knew the right edge case), and spent hours tracking it down to reentrancy problems in initWithHTML. Fortunately I could count on getting well-formed XML, and like

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-09 Thread Markus Spoettl
On 5/9/13 6:26 PM, Jens Alfke wrote: Yup. I had edge-case crashes too (fortunately reproducible one I knew the right edge case), and spent hours tracking it down to reentrancy problems in initWithHTML. Fortunately I could count on getting well-formed XML, and like Jens all I needed was to

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-09 Thread Andy Lee
On May 9, 2013, at 1:53 PM, Markus Spoettl ms_li...@shiftoption.com wrote: On 5/9/13 6:26 PM, Jens Alfke wrote: Yup. I had edge-case crashes too (fortunately reproducible one I knew the right edge case), and spent hours tracking it down to reentrancy problems in initWithHTML. Fortunately I

Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
I found a solution using AppleScript[1] but it seems like it may be fragile (uses magic numbers, etc). Is there another way? -Steven [1] http://apple.stackexchange.com/questions/60877/toggle-natural-scrolling-from-command-line-with-reload ___

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-09 Thread Jens Alfke
On May 9, 2013, at 10:53 AM, Markus Spoettl ms_li...@shiftoption.com wrote: Well, that's not entirely true, unfortunately. Although the documentation suggests you can, NSXMLDocument -init will crash if the content you're trying to feed it is sufficiently non-XML (say an ASCII text

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Kyle Sluder
On Thu, May 9, 2013, at 11:55 AM, Steven Degutis wrote: I found a solution using AppleScript[1] but it seems like it may be fragile (uses magic numbers, etc). Is there another way? What are you actually trying to accomplish? NSEvent has -isDirectionInvertedFromDevice, which can be used to

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
What are you actually trying to accomplish? I often switch between using my rMBP directly, and plugging it into this giant monitor. When I'm just using the rMBP's trackpad, I want the scroll direction to be natural. But when I'm plugged in and using a mouse, I'd prefer it to be unnatural. So

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-09 Thread Alex Kac
I'd strongly recommend a great tool from the DTCoreText github project - DTHTMLWriter and DTHTMLReader. It is designed to work with HTML documents and turn them into XML or like (he uses it for NSAttributedStrings). I've been using this project very heavily and it works extremely well. For

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Kyle Sluder
On Thu, May 9, 2013, at 12:13 PM, Steven Degutis wrote: What are you actually trying to accomplish? I often switch between using my rMBP directly, and plugging it into this giant monitor. When I'm just using the rMBP's trackpad, I want the scroll direction to be natural. But when I'm

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Scott Ribe
On May 9, 2013, at 1:19 PM, Kyle Sluder wrote: But I'd also consider just adopting the natural approach. It took me about a week to adjust. FYI, I've never been able to adjust to it when using a mouse at my desk--perfectly fine with it when using the trackpad, but not the mouse... -- Scott

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Steve Mills
On May 9, 2013, at 14:30:24, Scott Ribe scott_r...@elevated-dev.com wrote: FYI, I've never been able to adjust to it when using a mouse at my desk--perfectly fine with it when using the trackpad, but not the mouse... Apple really needs the scrolling direction to be set on a per-input-device

Setting Up a MVC most of it works BUT

2013-05-09 Thread YT
So I've spent the past few hours reading and am now trying to set up a simple MVC. I constructed a few buttons and textfields in a Window in IB The View will instantiate when the Xib is loaded (so I've read anyway) I created a MyController based on NSObject in the Xib SO once the Xib is loaded

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Uli Kusterer
On 09.05.2013, at 20:55, Steven Degutis sbdegu...@gmail.com wrote: I found a solution using AppleScript[1] but it seems like it may be fragile (uses magic numbers, etc). Is there another way? I wonder if an event tap and just changing the direction on each scroll event would work? Could

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Steven Degutis
Kinda like https://github.com/invariant/Scroll-Reverser ? Someone showed me this and I glanced at the source code, and was not fond of this technique. On Thu, May 9, 2013 at 7:26 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 09.05.2013, at 20:55, Steven Degutis sbdegu...@gmail.com

Re: Setting Up a MVC most of it works BUT

2013-05-09 Thread Graham Cox
On 10/05/2013, at 10:35 AM, YT y...@redwoodcontent.com wrote: BUT how does one send data from myDataModel to MyController. OR is that by request from MyController only? It can be, but not exclusively. Sometimes your data model might want to push a value to the interface for display. It all

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Graham Cox
On 10/05/2013, at 5:44 AM, Steve Mills smi...@makemusic.com wrote: Apple really needs the scrolling direction to be set on a per-input-device basis. Personally, I hate the natural setting, which is only natural on a touchscreen device like an iPad. Seconded. Lets all file radars...

Re: Setting Up a MVC most of it works BUT

2013-05-09 Thread Graham Cox
On 10/05/2013, at 10:35 AM, YT y...@redwoodcontent.com wrote: BUT how does one send data from myDataModel to MyController. OR is that by request from MyController only? Just to elaborate on my previous answer, there are several techniques that are commonly used to update an interface when

setFrame: weirdness in UITableViewCell

2013-05-09 Thread Laurent Daudelin
I'm trying to use a custom view which does only one thing: drawing the rect defined by its bounds: - (void)drawRect:(CGRect)rect { // Drawing code UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:self.bounds

Writing a custom Spotlight Importer

2013-05-09 Thread Vincent CARLIER
Hello everybody, I've written a Spotlight Importer for my custom document format. The document has an UTI, used by the Spotlight Importer. Everything is fine, I can see my Metadata Fields correctly indexed by Spotlight, I can see the right importer loaded (it is bundled into the .app) when I run

Re: What am I looking for in the documentation?

2013-05-09 Thread Mohit Sharma
You might want to look at sprintf http://linux.die.net/man/3/sprintf. sprintf(text, %f, fv) should work just fine. On Sat, May 4, 2013 at 4:20 PM, YT y...@redwoodcontent.com wrote: I have need to turn a local float value into a char array. That is, The Quartz 2D graphics function requires

UIWebView IBOutlet is always nil

2013-05-09 Thread Michael Crawford
I have a UINavigationController-based app that I would like to use a UIWebView to show an HTML page. My problem is that I declare my UIWebView property as an IBOutlet, and it is always nil. This is apparently a very common problem. Google turns up lots of queries at StackOverflow. I read them