render and edit xaml on ipad

2011-01-13 Thread Nethan Bharti
Hi All, Need your help... In a new project, I have to render and allow editing of xaml packages on iPad. Can anyone guide me, if there are some existing frameworks to render xaml on iPad, and which also allow xaml editting. Or any suggestions as to how can I proceed? Any help appreciated ab __

Toolbar validation and modal panel

2011-01-13 Thread Bruno Berisso
Hello all. In my application I use a modal sheet for block the user interface while the app is consulting a remote service. The call to the service is executed in background and the sheet is show/hide with two methods defined in the application delegate 'showLoading' and 'hideLoading'. Those a

Core Data - NSFetchRequest Issue

2011-01-13 Thread Joshua Lee Tucker
Hello, I have a small problem with NSFetchRequest. For some reason unknown to me, NSFetchRequest is not just returning my selected entity. I'll put this in context: I have two entities, one called Report and the other called Location. Report has a one-to-many relationship to Location, and I ha

Code Signing and a Background Tool

2011-01-13 Thread Matt Patenaude
Hi there, I'm having a bit of an issue with one of my applications. The way the application works is by spawning a background process at app startup, the executable for which is contained within its Resources directory. While running, however, running `codesign -v x` on the PID of the backg

NSView/NSResponder returns YES

2011-01-13 Thread Leanne Attard
Hi all, I am having a problem with NSView/NSResponder class. I need to override the NSView method acceptsFirstResponder method as from the documentation i have read the NSResponder method returns NO by default. However with the code i am using below i am getting a YES already without overridi

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread John Bartleson
Thank you all for your comments. Because I think this is an important topic (and because I'm stubborn) I'm going to continue to beat it to death. Because there were a number of issues brought up in the comments, let me summarize them, with my responses in line: ** Comment 1 (Graham Cox, Jan

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread Graham Cox
On 13/01/2011, at 7:52 PM, John Bartleson wrote: > The real point of my original plaintive cry, and I'm sorry if it's become > obfuscated, is that I > had to allocate memory as part of setting up for undo, but I couldn't find > any *simple* way to > keep track of whether that memory is still in

Re: Core Data - NSFetchRequest Issue

2011-01-13 Thread Jerry Krinock
On 2011 Jan 10, at 10:54, Joshua Lee Tucker wrote: > I am attempting to retrieve all of my Report objects, but when I retrieve > them, my array shows that I have also retrieved Locations objects. See -[NSFetchRequest setEntity:]. But if I recall correctly a fetch request will raise an excepti

How to use inline functions

2011-01-13 Thread Oleg Krupnov
Hi, I realize that my question has no relation to Cocoa, but it's still the place where I can get the fastest answer :) In several places in my app I check if the user has a valid license for my app. I'd like to make cracking the app somewhat more difficult and rather than calling -[license isVal

Re: Code Signing and a Background Tool

2011-01-13 Thread Jerry Krinock
First of all, you're on the wrong email list for this topic. Search the archives of Apple CDSA for an answer to your question, and re-post over there if you still have trouble. Signing background tools in app packages can be tricky. Here is a comment from a script that I wrote to ship my pro

Re: How to use inline functions

2011-01-13 Thread James Bucanek
Oleg Krupnov wrote (Thursday, January 13, 2011 8:21 AM +0200): I realize that my question has no relation to Cocoa, but it's still the place where I can get the fastest answer :) Oleg, Here are my thoughts: 1) I'm certainly no compiler expert, but I believe t

Re: render and edit xaml on ipad

2011-01-13 Thread Kyle Sluder
On Jan 9, 2011, at 9:23 PM, Nethan Bharti wrote: > Hi All, Need your help... > In a new project, I have to render and allow editing of xaml packages on > iPad. Can anyone guide me, if there are some existing frameworks to render > xaml on iPad, and which also allow xaml editting. Or any suggestio

data over USB to iPhone

2011-01-13 Thread Georg Seifert
Hi, Do I have any chance to transmit data from a mac to iPhone over USB? I have it running over wifi but the app would be used for a longer time next to the mac, so you need to plug it in anyways. thanks Georg___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: How to use inline functions

2011-01-13 Thread Nick Zitzmann
On Jan 13, 2011, at 8:21 AM, Oleg Krupnov wrote: > I realize that my question has no relation to Cocoa, but it's still > the place where I can get the fastest answer :) > > In several places in my app I check if the user has a valid license > for my app. I'd like to make cracking the app somewha

QuickLook returning small image

2011-01-13 Thread aglee
I'm requesting a QuickLook preview for an OmniGraffle file.  The size I'm asking for is 500x300.  The image I get back is much smaller, at 122x77, which looks terrible when I display it in my application.  When I use QuickLook to preview the same file in the Finder, it looks great. Why would I

Re: data over USB to iPhone

2011-01-13 Thread Kyle Sluder
On Thu, Jan 13, 2011 at 4:16 AM, Georg Seifert wrote: > Hi, > > Do I have any chance to transmit data from a mac to iPhone over USB? I have > it running over wifi but the app would be used for a longer time next to the > mac, so you need to plug it in anyways. No. File an enhancement request a

Re: QuickLook returning small image

2011-01-13 Thread Kyle Sluder
On Thu, Jan 13, 2011 at 9:43 AM, aglee wrote: > I'm requesting a QuickLook preview for an OmniGraffle file.  The size I'm > asking for is 500x300.  The image I get back is much smaller, at 122x77, > which looks terrible when I display it in my application.  When I use > QuickLook to preview the sa

Re: QuickLook returning small image

2011-01-13 Thread Kyle Sluder
On Thu, Jan 13, 2011 at 10:06 AM, Kyle Sluder wrote: > Taking a while stab here: icon==YES? *Wild* stab. Coffee is good. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: QuickLook returning small image

2011-01-13 Thread aglee
On Jan 13, 2011, at 01:06 PM, Kyle Sluder wrote: Taking a while stab here: icon==YES? I get the same result (size-wise) whether icon is YES or NO. Joar pointed out off-list that Finder might be asking for a *preview* rather than a *thumbnail*.  I totally missed that distinction and I bet it's

Re: QuickLook returning small image

2011-01-13 Thread aglee
On Jan 13, 2011, at 01:07 PM, Kyle Sluder wrote: On Thu, Jan 13, 2011 at 10:06 AM, Kyle Sluder wrote: Taking a while stab here: icon==YES? *Wild* stab. Coffee is good.   I was going to say, in this case it's more of an "if" stab than a "while" stab. --Andy ___

Re: sending a message from an initializer method

2011-01-13 Thread Uli Kusterer
On Jan 13, 2011, at 1:27 AM, Erik Buck wrote: > Class or instance method makes no difference in this case with regard to > polymorphism. It does. He's only passing the two instance variables to the class method. And, being a class method, "self" is the class, not the half-initialized instance.

Re: data over USB to iPhone

2011-01-13 Thread Reaves, Timothy
That's not correct. There are Apple approved cables to allow you to do exactly that (there is a serial cable too). But my understanding is the cable itself is not certified by Apple, but the actual usage of the cable. You you can get one of the existing cables and see if you can use it for your p

Re: data over USB to iPhone

2011-01-13 Thread Kyle Sluder
On Thu, Jan 13, 2011 at 11:12 AM, Reaves, Timothy wrote: > That's not correct.  There are Apple approved cables to allow you to do > exactly that (there is a serial cable too).  But my understanding is the > cable itself is not certified by Apple, but the actual usage of the cable. > You you can g

Re: sending a message from an initializer method

2011-01-13 Thread Erik Buck
Fair enough. On Jan 13, 2011, at 1:19 PM, Uli Kusterer wrote: > On Jan 13, 2011, at 1:27 AM, Erik Buck wrote: >> Class or instance method makes no difference in this case with regard to >> polymorphism. > > It does. He's only passing the two instance variables to the class method. > And, being

Maintaining NSCursor outside of app window

2011-01-13 Thread Markus Spoettl
Hello, I have a drag-n-drop UI where I use the [NSCursor disappearingItemCursor] to indicate that if you drop now, you're going to remove the item being dragged. I do this by setting the cursor when my dragging destination receives a -draggingExited: message (the dragging destination and sour

Re: sending a message from an initializer method

2011-01-13 Thread Richard Somers
On Jan 12, 2011, at 4:41 AM, Luc Van Bogaert wrote: I would like to implement that algorithm in a seperate method, instead of writing it directly in the initializer. Is that OK, and could I then message "self" in the initializer like: - (id) init { self = [super init]; if (s

Re: Maintaining NSCursor outside of app window

2011-01-13 Thread Corbin Dunn
Hi Markus, Use: - (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint Then do something like this (after converting the screen point to window coords): NSPoint windowPoint = [[view window] mouseLocationOutsideOfEventStream]; NSPoint localPoint = [view convertPoint:w

Re: Maintaining NSCursor outside of app window

2011-01-13 Thread Markus Spoettl
On Jan 13, 2011, at 7:37 PM, Corbin Dunn wrote: > - (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint > > Then do something like this (after converting the screen point to window > coords): > > NSPoint windowPoint = [[view window] mouseLocationOutsideOfEventStream]; >

Re: Maintaining NSCursor outside of app window

2011-01-13 Thread Quincey Morris
On Jan 13, 2011, at 16:48, Markus Spoettl wrote: > On Jan 13, 2011, at 7:37 PM, Corbin Dunn wrote: >> - (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint >> >> Then do something like this (after converting the screen point to window >> coords): >> >>NSPoint windowPoint

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread John Bartleson
Graham: thanks for your comment and thanks for being patient with a relative n00b. Hopefully we can nail this topic down in a post or two. You are not required to verify it. (Though you may do so using the memory tracing tools). You only need to follow the rules, and understand that the und

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-13 Thread Graham Cox
On 14/01/2011, at 5:58 PM, John Bartleson wrote: > I'm glad to see this, because it's really the answer to my original question. > Poking around a little, one finds > NSInvocation's retainArguments method, which is probably what NSUndoManager > uses. > > You've stated that I "only need to foll