Re: Adding HTML data to the general pasteboard

2011-05-28 Thread Kyle Sluder
On Thu, May 26, 2011 at 11:43 PM, Patrick Robertson robertson.patr...@gmail.com wrote: I currently have an application which pastes objects from a given list of saved objects (basically strings) to wherever the mouse if focused. What I'm looking to do is paste these objects in RT format into

Re: Adding HTML data to the general pasteboard

2011-05-28 Thread Kyle Sluder
On Fri, May 27, 2011 at 11:06 PM, Patrick Robertson robertson.patr...@gmail.com wrote: 1. If you're running on 10.6 I may go this way, and just leave it as it is for 10.5 users. 2. You're seriously simulating keystrokes to paste things in places?... Yep, if you can come up with a better

Re: Application Design

2011-05-28 Thread Dan Hopwood
Thanks for your response Steve. I have considered using the nsnotification service but what if you need to not only let another object know when an event has occurred but you also need to send that object some data? For example a user selects an option in a table - the selection must be conveyed

iOS programming (who does what to whom?)

2011-05-28 Thread John Love
Way back when, when XCode was almost! brand new, I printed out reams and reams of paper which described, for example, how a NSDocument-based macOS app happened. For example, I learned to override: -(BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError

Re: iOS programming (who does what to whom?)

2011-05-28 Thread David Duncan
On May 28, 2011, at 9:19 AM, John Love wrote: Okay, what's the point? This point is a question: where can I find the details of who calls whom after main.m is run .. in the iOS word, what happens inside UIApplicationMain. You will probably want to start with the iOS Application

Re: Application Design

2011-05-28 Thread Conrad Shultz
On May 28, 2011, at 6:11, Dan Hopwood d...@biasdevelopment.com wrote: Thanks for your response Steve. I have considered using the nsnotification service but what if you need to not only let another object know when an event has occurred but you also need to send that object some data? For

Re: Seeding random() randomly

2011-05-28 Thread Jeffrey Walton
On Thu, May 26, 2011 at 9:15 PM, Dave Keck davek...@gmail.com wrote: I'm using random(), but every time I run my app I get the same sequence, despite having this code in my app delegate's -appDidFinishLaunching method. Clearly I'm not seeding it right, though I can't see why - I get a

A Simple NSXML XPath Problem

2011-05-28 Thread Bing Li
Dear all, I got a problem when extracting data from XML using NSXML and XPath. When doing the same thing using Java, it works fine. But using NSXML and XPath, the result is different. The XML is pretty simple. ?xml version=1.0 encoding=UTF-8? addresses roadOrange ST/road

Re: A Simple NSXML XPath Problem

2011-05-28 Thread Stephen J. Butler
On Sat, May 28, 2011 at 9:40 PM, Bing Li lbl...@gmail.com wrote: The XML is pretty simple.    ?xml version=1.0 encoding=UTF-8?    addresses        roadOrange ST/road        aptRM235/apt    /addresses The following code is use to extract the value of the road, Orange ST. In Java, the

UIColor vs. NSColor methods

2011-05-28 Thread Graham Cox
I'm porting some code to iOS from MacOS for the first time. I find that UIColor is quite impoverished compared to NSColor, but I also don't see a way to do what I need using CGColorRef either. Specifically, I often generate colours from other colours by using the H, S and V values returned by

What's wrong with this?

2011-05-28 Thread Graham Cox
#import UIKit/UIKit.h @class SGBoard; //-- error: Expected '{' before 'class' @interface GameViewController : UIViewController { IBOutlet UIView*mGameView; IBOutlet SGBoard* mBoard; } - (SGBoard*)board; @end This is occurring on

[IGNORE} Re: What's wrong with this?

2011-05-28 Thread Graham Cox
On 29/05/2011, at 2:29 PM, Graham Cox wrote: Dah! Forget it - silly mistake elsewhere. As always, noticed seconds after posting. --G. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: What's wrong with this?

2011-05-28 Thread Stephen J. Butler
On Sat, May 28, 2011 at 11:29 PM, Graham Cox graham@bigpond.com wrote: #import UIKit/UIKit.h @class SGBoard;         //-- error: Expected '{' before 'class' @interface GameViewController : UIViewController {        IBOutlet UIView*                mGameView;        IBOutlet SGBoard*

Re: UIColor vs. NSColor methods

2011-05-28 Thread Roland King
You can use CGColorGetComponents on a CGColorRef to get the values of whatever colorspace the CGColorRef is in and you can create new CGColorRefs with those values. I don't see a way to convert from one colorspace to another however a quick test on one UIColor constructed with HSV values