Re: ANN: Step by step introduction to programming with Cocoa

2008-05-22 Thread Harry
There are also a couple of wiki-book projects on Learning Cocoa. Here are links: http://en.wikibooks.org/wiki/Programming_Mac_OS_X_with_Cocoa_for_beginners http://en.wikibooks.org/wiki/Programming:Cocoa > Date: Wed, 21 May 2008 12:33:12 -0700 (PDT) > From: Erik Buck <[EMAIL PROTECTED]> > Sub

Re: I can't find it in the docs so I know I'm missing it some where

2009-09-02 Thread Harry Jordan
pp Store. Yes, Apple could add a third category of 'subscription' apps but there are so many edge cases that it's just adding unnecessary complexity for the users. If your going to subscribe to a service for months or years, then a $1 startup fee really isn't a very big h

Advice on debugging a GC related crash

2009-09-25 Thread Harry Jordan
it lost as to how to go about reproducing it never mind fixing it. Any advice would be most appreciated. Cheers Harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Advice on debugging a GC related crash

2009-09-26 Thread Harry Jordan
Cookies/Safari Cookies.bundle/Contents/MacOS/Safari Cookies Everything else except for this input manager seems quite standard, so I suspect this could be the culprit. For now I'm going to wait and see if I get any more crash reports in this vein before I investigate any further. Thank yo

NSSplitView and NSScrollView

2009-10-15 Thread Harry Sfougaris
I have placed a NSSplitView inside a NSScrollView in code. However, when the user resizes one of the views so part of it outside the NSScrollView visible bounds, the NSScrollView does not display the scroll bars. Is this not possible? Thank you, Harry Sfougaris

Re: NSSplitView and NSScrollView

2009-10-15 Thread Harry Sfougaris
addSubview:vw3]; [splitVw setAutoresizingMask:NSViewHeightSizable]; [scrollVw setDocumentView:splitVw]; Thanks, Harry On 15 Οκτ 2009, at 8:53 μ.μ., Kyle Sluder wrote: On Thu, Oct 15, 2009 at 1:31 AM, Harry Sfougaris wrote: I have placed a NSSplitView inside a NSScr

NSCollectionView and drag tolerance

2009-11-02 Thread Harry Vangberg
don't allow that, as stated earlier. or b) Add some kind of 'tolerance radius' inside which the mouse down event must happen, which would make it possible to initiate a drag via the less-than-precise control a touchscreen is. This is with

Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-02 Thread Harry Vangberg
2009-11-01 20:09:17.748 MediaShow[10005:150b] Button 8192 pressed down 0 Which makes it a tad difficult to differ between them. This is developing against 10.6. Thanks, Harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

IKImageBrowserView and reordering

2009-11-05 Thread Harry Vangberg
initiate a drag at all. Developing against 10.6 SDK. Harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

Accessing FilesOwner fm controller

2009-11-16 Thread Harry Plate
7;s Owner from the controller so I can communicate w/ my class during -awakeFromNib? TIA, -harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

NSOpenPanel accessoryView and new windows...

2009-11-16 Thread Harry Plate
it the same behavior with the new window "under" the open panel. I also note that the default About panel support has the same ordering issue. What needs to be done get my new window on top of the panel, and receiving key/mouse events? TIA, -harry

Re: How to set the name of open-with application for a specific file?

2009-08-02 Thread Harry Jordan
t it looks reasonable. Hope that helps. Harry http://inquisitivesoftware.com/ On 31 Gorff 2009, at 14:00, MATSUMOTO Satoshi wrote: Dear Jerry Krinock, On 2009/07/31, at 21:43, Jerry Krinock wrote: Activate Finder. Select a subject document file. In main menu click File > Get Info. In the Info

Re: Need advice about how to create a Cocoa Framework

2009-08-19 Thread Harry Jordan
e most part you can treat them like a normal application. Make sure you mark the header files that you want to be made as public, and accessible to the outside world. All in all, frameworks aren't that scary. Harry http://inquisitivesoftware.com/ On 19 Awst 2009, at 01:05, Gevik wro

Re: Detect Keyboard Layout for CGKeyCodes

2009-08-19 Thread Harry Jordan
http://inquisitivecocoa.com/2009/04/05/key-code-translator/ for my version of what I think your trying to achieve. Be warned, there are a few gaps in my implementation (like F numbers for instance), but that shouldn't be that hard to add. Harry Jordan http://inquisitivesoftware.com/ On 19 Awst 2009

Re: Detect Keyboard Layout for CGKeyCodes

2009-08-20 Thread Harry Jordan
d an explicit reference to this in the documentation, I think the position in the array of each UCKeyOutput is equivalent to it's keyCode. Then you need to read UCKeyOutput's bytes (14 and 15) to find out how to decode it's Unicode character. Hope that's more what you we

'Configure Sheet' fails when containing a WebView

2008-05-23 Thread harry greenmonster
Hi I have a screensaver which I'm building, I have created a 'configure sheet' accessed by the 'options' button in 'system preferences>screensaver'. In IB I drag WebView onto my 'configure sheet', then when I test the screensaver the 'options button' fails to open the sheet. If I delete t

Trying to display a simple sheet

2009-01-19 Thread Harry Plate
; [NSApp endSheet:[sourceTableView window]]; [[sourceTableView window] orderOut:self] ; ... I guess I would have expected that #2 or #3 would have resulted in a sheet on my main application window. What obvious detail did I miss? TIA, -harry _

Re: Trying to display a simple sheet

2009-01-20 Thread Harry Plate
when I moved the code fragments to the -applicationDidFinishLaunching delegate I assume then that only when the app is really running can I start to manipulate sheets -harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

NSTextView and front/middle/back ellipses

2009-01-22 Thread Harry Plate
I have a simple text view that will display its text information with an ellipses on the right (end) if the string is too long for the view. Nice, but... How can I tell NSTextView to use a "front" or "middle" ellipses for viewing purposes? -h ___ Coc

Re: NSTextView and front/middle/back ellipses

2009-01-23 Thread Harry Plate
gt; NSLineBreakMode using -setLineBreakMode:. Thanks a bunch! The hint led me to "Breaking Lines by Truncation" in the "Rulers and Paragraph Styles" doc. Within that are some very useful code fragments illustrating what to do. I'm off to the races, -harry __

Simple memory problem

2009-02-05 Thread harry greenmonster
while([inputString isMatchedByRegex:regexString]){ range = [inputString rangeOfRegex:regexString]; inputString = [inputString stringByReplacingCharactersInRange:range withString:@""]; } 'inputString' is a 5mb text file, Activity Monitor shows that memory

Re: Simple memory problem

2009-02-05 Thread harry greenmonster
I had already tried an NSAutoreleasePool but came across issues, it released inputString so as useless for the next iteration. So I tried keeping it around with... if (inputString != nil) { [inputString retain]; /* Keep match around.

Re: Simple memory problem

2009-02-05 Thread harry greenmonster
"NSMutableString", good idea, I think that will work, will try that thanks. And thanks everyone else. On 6 Feb 2009, at 00:16, Shawn Erickson wrote: On Thu, Feb 5, 2009 at 3:39 PM, harry greenmonster wrote: 'inputString' is a 5mb text file, Since inputString is lar

Re: Simple memory problem

2009-02-06 Thread harry greenmonster
I cant help but think the preferable way Objective C should would is to send a release automatically to the receiver of a product of itself. inputString = [inputString myMethod]; Its fairly clear in this situation that the original 'inputString' is not wanted and needs to die, and would see

Re: Simple memory problem

2009-02-06 Thread harry greenmonster
management is just that - manual - you don't want to compiler automatically releasing stuff for you. Bryan On Feb 6, 2009, at 5:24 AM, harry greenmonster wrote: I cant help but think the preferable way Objective C should would is to send a release automatically to the receiver of a

Re: Simple memory problem

2009-02-06 Thread harry greenmonster
Forgot to add: As long as the returned type was the same. So instead.. inputString = [inputString StringFromMyMethod]; On 6 Feb 2009, at 13:32, harry greenmonster wrote: Yes, memory management is a weak point of mine, which I'm currently trying to resolve. Last time I had any use f

Re: Simple memory problem

2009-02-06 Thread harry greenmonster
On 6 Feb 2009, at 14:18, Steve Sisak wrote: If you use an Objective-C 2.0 property (rather than a variable) and specifying retain semantics, you'll get that behavior -- with a bit of overhead. Ah interesting, just the kind of result I was hoping to obtain from asking dumb questions. In my

NSTableView crash when selected.

2009-02-13 Thread Harry Plate
dragging 2 (or more) elements into the view, if I simply click on the table. Boom. It is wierd that iff there is only 1 element in the table view, then all is ok. The stack is added below. Appreciate any suggestions, -harry OS Version: Mac OS X 10.5.5 (9F33) Report Version: 6 Exception Type

Re: NSTableView crash when selected.

2009-02-17 Thread Harry Plate
its elements? Likewise for NSTableView? Seems like that would be a valid assumption. Eg, when we did our leak test we concluded we had to [array removeAllObject] before we [array release]. This just doesn't seem right... -harry ___ Cocoa-dev mailing

Re: NSTableView crash when selected.

2009-02-17 Thread Harry Plate
not seen that before I am sure that I will trip/stumble abit more before the issue of object retention/ownership becomes second nature to me. Appreciate your help! -harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

NSTableView behavior changes

2009-02-17 Thread Harry Plate
ted in my controller class. So I assume that magically my controller has become the "data source" for the table view. I have read something about a "field editor" - could this be the clue to my rquirements listed above? -harry __

Re: NSTableView behavior changes

2009-02-17 Thread Harry Plate
oller. > Of course its magic ;-) Else how can I explain this to my wife?! Sho'nuf, the controller had the definitions as you said. And I did them. The book I am walking thru has had me doing so many things that am forgetting most of them (and certainly did not understand them anywat) along th

Reading from online Byte Array to UITableview best method?

2009-02-19 Thread Harry G
I wish to dynamically load (from URL) byte array data, convert to cocoa datatypes, and use in an UITableview. So many ways to skin a cat, so before I proceed I was wondering what methods you would recommend for the job? ___ Cocoa-dev mailing list

Best method of communicating with binary java DataOutputStream on iPhone?

2009-02-20 Thread Harry G
Data shall be obtained via http as utf-8 served by Java DataOutputStream. The data consists of int's and utf-8 strings Other than iterating through byte by byte, does cocoa have any convenience methods to communicate or extract such data? Speed of data transfer is of high priority, what w

Re: NSTableView behavior changes

2009-03-17 Thread Harry Plate
t change the behavior. I am obviously barking up the wrong tree. Should I subclass NSTableView, and intercept keys (keyDown)? I am seeing some list topics where folks have done that. Comments welcome, -harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: NSTableView behavior changes

2009-03-18 Thread Harry Plate
t the same thing be done for an NSTextView? Ie, override the keyDown: method to get the "delete" functionality that I was striving for above? Comments appreciated! -harry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSTableView behavior changes

2009-03-18 Thread Harry Plate
ultiple items? That was not the objective; in fact, multiple selection (via the mouse) is working just fine and as expected. I was simply surprised that Cmd-A was not working. As you can probably tell, I am tromping in a lot of new territory... Comments appreciated, -harry __

global UIColor

2009-03-22 Thread Harry G
I'm setting up my constants in my app, and have come across a problem. I wish to have a standard UIColor to use for all titles in my app but I get the error "error: initializer element is not constant" and for obvious reasons , but my question is: How am I 'supposed' to implement a single g

Confounding crash, not much to go on except a stack trace

2009-03-26 Thread Harry Jordan
I was wondering if anyone could shed light on this strange error that occurs, sometimes, (never when I'm actually trying to reproduce it) when clicking in the application menu while running a modal Open Panel. #00x816f5d36 in mach_msg_trap #10x816fd373 in mach_msg #20x81915c4f in CF

The efficiency of swapping endianness on an iPhone?

2009-04-14 Thread Harry G
Hi, I'm currently writing an app for iphone that downloads large tables of text and images , and my server outputs big endian. How significant would the extra processing be to convert to small endian on the iPhone? I'm sure most of you would recommend doing the conversion on the server si

Re: Confounding crash, not much to go on except a stack trace

2009-05-09 Thread Harry Jordan
only affected my app, when it was running 64bit. So problem solved, but I'm not sure how or why. On Mar 26, 10:32 pm, Nick Zitzmann wrote: > On Mar 26, 2009, at 2:33 PM, Harry Jordan wrote: > > > I was wondering if anyone could shed light on this strange error   > > that occurs,