Deploying to an iPad

2010-07-12 Thread Christian Graus
hi guys. I am getting back in to iPad development, and at this stage, I have an application that was written for us, which I want to deploy. I've not made any code changes, but I've changed the databases, which means I've changed the files that should be deployed with the application. I've just

Re: Deploying to an iPad

2010-07-13 Thread Christian Graus
>> when adding a file you should be asked if you would like it to be copied to >> the project's directory. >> this should be a checkbox in a dialog. have you tried this? That's what I did initially. The files themselves are not marked to be deployed with any target, but instead the folder they a

Re: Deploying to an iPad

2010-07-14 Thread Christian Graus
Thank you - no, I did not know about that. It's duly noted for next time. On Thu, Jul 15, 2010 at 3:28 AM, Gerd Knops wrote: > > On Jul 12, 2010, at 4:17 PM, Christian Graus wrote: > >> hi guys.  I am getting back in to iPad development, and at this stage, >> I ha

Accessing attributes of XML

2008-05-05 Thread Christian Graus
Hi, I have the following code: NSXMLDocument *doc = [[NSXMLDocument alloc] initWithContentsOfURL:xmlURL options:0 error:&error]; NSXMLNode *node = [doc rootElement]; NSArray *array = [node nodesForXPath:@"/DiaIndex/Item" error:&err]; int nodeCount = 0; while(nodeCount

Re: Accessing attributes of XML

2008-05-05 Thread Christian Graus
On Tue, May 6, 2008 at 2:28 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 5 May '08, at 5:34 AM, Christian Graus wrote: > > NSXMLElement *node2 = [array objectAtIndex:nodeCount]; > > > > NSXMLElement *name = [node2 attributeForName:@"Name"]; &

Re: Accessing attributes of XML

2008-05-05 Thread Christian Graus
On Tue, May 6, 2008 at 8:27 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 5 May '08, at 2:30 PM, Christian Graus wrote: > > As for NSMXLNode, I moved to NSXMLElement to get access to > > attributeForName, I was using NSXMLNode before that, still to no avail. >

Re: Accessing attributes of XML

2008-05-05 Thread Christian Graus
On Tue, May 6, 2008 at 8:44 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 5 May '08, at 3:36 PM, Christian Graus wrote: > > OK - thanks. I will try that. My reading had me thinking that > > NSXMLElement and NSXMLDocument are both derived from NSXMLNode, and that

Re: Accessing attributes of XML

2008-05-05 Thread Christian Graus
On Tue, May 6, 2008 at 9:00 AM, David Wilson <[EMAIL PROTECTED]> wrote: > On Mon, May 5, 2008 at 6:36 PM, Christian Graus > <[EMAIL PROTECTED]> wrote: > > Yeah, that's where I found the docs. IMHO it's a real shame that a > proper > > DOM implime

Re: Accessing attributes of XML

2008-05-05 Thread Christian Graus
Hi Jens I just wanted to let you know, I fixed my various changes as per your recommendations ( getting back to the code I started with ) and figured out how/where to use po, and sure enough, my code was working all along, I just expected the info I got when I hovered the mouse over a variable to

Re: Accessing attributes of XML (Christian Graus)

2008-05-05 Thread Christian Graus
On Tue, May 6, 2008 at 10:55 AM, Richard Wolf <[EMAIL PROTECTED]> wrote: > > On May 5, 2008, at 6:49 PM, [EMAIL PROTECTED] wrote: > > I had to pick up the XPath stuff recently for a project I was working > > > on, and I've got to say that once you get yourself thinking in that > > > way, it's rea

Zooming and panning an NSImageView

2009-02-03 Thread Christian Graus
Hi guys We have a program that uses the NSImageView to show images, currently it forces the image to be shown so it fits the window ( that is, they are a lot bigger than what we're seeing ). i want to add the ability to animate a zoom into an area, after a user drags a box over that area, and then

Re: Zooming and panning an NSImageView

2009-02-04 Thread Christian Graus
Thanks Rob. Knowing what to type into google is usually the hardest part ( I had done some searching and had not seen this ). I'm looking at the docs now, this looks perfect for what I needed. Thanks again Christian ___ Cocoa-dev mailing list (Cocoa-d

Anyone using IKImageView/any alternatives ?

2009-02-05 Thread Christian Graus
I am googling for example of IKImageView, and all I am finding is posts like this one: http://espresso-served-here.com/category/scribbler/ In short, lots of people are reporting that IKImageView plain does not work as advertised. Does anyone have any positive experience with this control ? All I

IKImageView selection issue

2009-02-05 Thread Christian Graus
I have a class derived from IKImageView, and in my initWithFrame ( which is the only init I call ), I set [self setDelegate:self]; Once I do this, I have this code: - (void) selectionRectAdded: (IKImageView *) imageView { NSLog(@"Created sel rect"); } I run the app and make a selection. This

More info - drag and drop could be the issue....

2009-02-05 Thread Christian Graus
So, it seems that if I set my class to be it's own delegate, then the drag and drop code that exists in the containing class, does a perform drop when I drag out a box in my IKImageView. My breakpoints are not working properly tho ( which often happens to me in XCode ). So, - (BOOL)performDrag

Re: IKImageView selection issue

2009-02-05 Thread Christian Graus
Cox wrote: > > On 6 Feb 2009, at 11:50 am, Christian Graus wrote: > > I have a class derived from IKImageView, and in my initWithFrame ( which >> is >> the only init I call ), I set [self setDelegate:self]; >> Once I do this, I have this code: >> &

Re: IKImageView selection issue

2009-02-05 Thread Christian Graus
On Fri, Feb 6, 2009 at 2:40 PM, Graham Cox wrote: > > On 6 Feb 2009, at 2:14 pm, Christian Graus wrote: > > OK - that makes some sense, excepting that if I don't set the delegate, >> and just define the methods, they don't get called at all. Also, all the >>

Re: IKImageView selection issue

2009-02-05 Thread Christian Graus
etch. Christian On Fri, Feb 6, 2009 at 3:49 PM, Christian Graus wrote: > > > On Fri, Feb 6, 2009 at 2:40 PM, Graham Cox wrote: > >> >> On 6 Feb 2009, at 2:14 pm, Christian Graus wrote: >> >> OK - that makes some sense, excepting that if I don't set the

Animated toolbar

2009-02-06 Thread Christian Graus
Hi again In my app, I want a toolbar like the one at the bottom of OSX, with icons that resize as I move the mouse over them. I want the whole toolbar to hide and to scroll up into view from the bottom of my window when I move my mouse over the little edge that would be always visible. I've been

Re: Animated toolbar

2009-02-06 Thread Christian Graus
On Sat, Feb 7, 2009 at 1:11 PM, Kyle Sluder wrote: > On Fri, Feb 6, 2009 at 4:43 PM, Christian Graus > wrote: > > In my app, I want a toolbar like the one at the bottom of OSX, with icons > > that resize as I move the mouse over them. > > The user interface element you&#

Re: Animated toolbar

2009-02-06 Thread Christian Graus
On Sat, Feb 7, 2009 at 1:56 PM, Kyle Sluder wrote: > On Fri, Feb 6, 2009 at 9:32 PM, Christian Graus > wrote: > > We prefer users to use our app full screen. we're copying our Windows > > program, so we really don't have a lot of room to rethink this stuff, and >

Re: Animated toolbar

2009-02-07 Thread Christian Graus
of something flashy that fits in with the Mac. Christian On Sat, Feb 7, 2009 at 6:34 PM, Graham Cox wrote: > > On 7 Feb 2009, at 8:43 am, Christian Graus wrote: > > In my app, I want a toolbar like the one at the bottom of OSX, with icons >> that resize as I move the mouse over them

Re: Animated toolbar

2009-02-07 Thread Christian Graus
, in the context of our product, and their knowledge of it, is to go beyond standard UI to make our app more visually appealing, without sacrificing usability. That's just the nature of our product. Christian On Sat, Feb 7, 2009 at 8:53 PM, Graham Cox wrote: > > On 7 Feb 2009, at 8:4

Re: Animated toolbar

2009-02-07 Thread Christian Graus
In short, applications that are ported to the platform with the express intent of maintaining their look and feel from Windows do little more than treat OS X users as second-class citizens. No one likes paying money for that feeling so at the end of the day, I doubt the port will see even remote s

Re: Animated toolbar

2009-02-07 Thread Christian Graus
no idea at this stage. On Sun, Feb 8, 2009 at 6:30 AM, Nick Zitzmann wrote: > > On Feb 7, 2009, at 3:11 AM, Christian Graus wrote: > > Well, our prospective Mac users are all in a niche market, they have all >> seen the marketing for our windows version, and most of them ar

Re: Animated toolbar

2009-02-08 Thread Christian Graus
>> Fair enough. >> I guess that brings this discussion to a close, so thanks to >> everyone who >> responded. It's been very valuable to me, even if it didn't go in the >> direction I was hoping. It's certainly convinced me that our >> toolbar needs >> to go, although what we replace it with, I h

Transparent image

2009-02-09 Thread Christian Graus
Hi guys I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the co

Re: Transparent image

2009-02-09 Thread Christian Graus
: > > [window setOpaque:NO]; > [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 > alpha:0.5]]; > > > > > On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: > > I have a window with an image showing on it. Above this I have a window, >> which con

Re: Transparent image

2009-02-09 Thread Christian Graus
b 10, 2009 at 9:18 AM, Steve Christensen wrote: > Something similar to what you're asking was discussed on this list last > week. To get you started: > > [window setOpaque:NO]; > [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 > alpha:0.5]]; > > &

Re: Transparent image

2009-02-09 Thread Christian Graus
n what you're trying to do, you could always use > NSImageView since that does respect transparency, at least when I've tried > it with the non-bordered version. > > > On Feb 9, 2009, at 3:10 PM, Christian Graus wrote: > > I'm sorry, I'm not sure that I'm

Re: Transparent image

2009-02-10 Thread Christian Graus
mageView and override NSView's isOpaque > method, returning NO. > > Also, depending on what you're trying to do, you could always use > NSImageView since that does respect transparency, at least when I've tried > it with the non-bordered version. > > > On Feb 9,

Re: Transparent Image

2009-02-10 Thread Christian Graus
> The IKImageView and IKImageBrowserView do some pretty funky stuff under the > hood and don't support background or image transparency as far as I am tell. > Subclassing them and overriding the drawing methods causes nothing but pain, > believe me. OK - so you're saying that the IKImageView is us

Re: Transparent image

2009-02-10 Thread Christian Graus
#x27;s > not possible, or at least, not very easy to do. > > Depending on what you're trying to do overall, you could also create your > own custom view that has a transparent background and apply a > NSAffineTransform before drawing the image to cause it to rotate, scale, > fli

Re: High-quality image upscaling

2009-02-10 Thread Christian Graus
I'm not sure if there are any classes for this, but I'd assume so. A bilinear or bicubic filter is often used to upscale an image, bicubic is indeed better. The DPI setting of an image can be arbitrary and is unrelated to the number of pixels ( for example, if you change the resolution of your mo

Re: Transparent Image

2009-02-11 Thread Christian Graus
>> Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs

Re: Transparent Image

2009-02-11 Thread Christian Graus
Thank you. The number is *6578276.* On Thu, Feb 12, 2009 at 9:57 AM, Kyle Sluder wrote: > http://bugreport.apple.com > > Then make sure to post the bug number here. > > --Kyle Sluder > > -- > --Kyle S

Re: Transparent Image

2009-02-11 Thread Christian Graus
olved for > looong periods of time. You want http://bugreport.apple.com > > > On 11 Feb 2009, at 20:41, Christian Graus wrote: > > Please file a bug and request this functionality. >>>> >>> OK - that would not have occurred to me at all. That works in the Mac >

IKImageView (Again )

2009-02-17 Thread Christian Graus
OK, so I have the following code: NSPoint endPoint = [self convertPoint:[theEvent locationInWindow] fromView: self]; float left = startPoint.x; float width = endPoint.x - left; if (left > endPoint.x) { width = -width; left = endPoint.x; } float top = startPoint.y; float height = endPoi

Trying to open a file

2009-02-17 Thread Christian Graus
Hi guys So, I've got a file open dialog, and I have this code: NSString * path = @"file://"; NSString * p = [open filename]; path = [path stringByAppendingString:p ]; NSURL * xmlURL = [[NSURL alloc] initWithString:path ]; NSXMLDocument *doc = [[NSXMLDocument alloc] initWithContentsOfURL:xmlURL

Re: Trying to open a file

2009-02-17 Thread Christian Graus
orked ( the code has not changed, so I am mystified ) On Wed, Feb 18, 2009 at 6:00 PM, Ron Fleckner wrote: > > On 18/02/2009, at 5:35 PM, Christian Graus wrote: > > Hi guys >> So, I've got a file open dialog, and I have this code: >> >> NSString * path = @"

Re: Trying to open a file

2009-02-18 Thread Christian Graus
9, at 1:15 AM, Christian Graus wrote: > > I will look to see what fileURLWithPath returns tho, b/c the string is the >> same as it was the last time I ran this, but last time it worked ( the >> code >> has not changed, so I am mystified ) >> > > It may have worked, but i

Capturing the mouse and working out the mouse position

2008-11-27 Thread Christian Graus
Hi guys. Although I've subscribed to this list for months, this is my first post. I'm in the process of migrating from Windows development, so my questions may have a windows centric bent, in terms of my thinking in terms of how I'd do stuff under that platform. Basically, I have an NSTableView i

Re: Capturing the mouse and working out the mouse position

2008-11-27 Thread Christian Graus
Thanks for the reply. As it stands, we're using a single cell ( someone else actually wrote that part, but neither of us knows how to handle the mouse stuff that's cropping up now ). So, there's an event I can plug into that would give me the mouse position over the cell ? If you're saying I shou

Still unable to work out mouse position

2008-11-28 Thread Christian Graus
Thanks to the person who answered yesterday, but I am no closer to a solution. I have an NSTableView, and it contains NSTextAttachmentCell rows. There's only one column in the table view. Basically, when a user clicks on a row, I am getting the shouldSelectRow event, which gives me a row index.

Co-ordinate conversion question

2008-11-28 Thread Christian Graus
OK, I managed to find the answer to my main question on google ( not for want of trying previously ). NSPoint pt = [NSEvent mouseLocation]; NSRect rcTV = [tableView bounds]; pt = [tableView convertPoint:pt fromView:nil]; So, now the first line gives me the mouse position on the screen. The