Re: migration to 10.6 SDK, loadNib problems

2011-08-12 Thread Philip White
SIBObjectData > nibInstantiateWithOwner:topLevelObjects:] () > #856 0x906d4679 in loadNib () > etc... > > > Thanks, > Philip White I seemed to have found what is causing the problem here. I had an NSTabView's selectedIdentifier binding bound to File's Owner.window.toolb

migration to 10.6 SDK, loadNib problems

2011-08-11 Thread Philip White
:] () #8540x90902ed4 in -[NSNibBindingConnector establishConnection] () #8550x906de819 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] () #8560x906d4679 in loadNib () etc... Thanks, Philip White ___ Cocoa-dev mailing list

NSToolbar disabled after ending sheet

2010-10-12 Thread Philip White
f the toolbar items to become disable; they get grayed out and don't accept clicks. Everything else continues working in the window and this problem does not manifest on Snow Leopard. Has anyone run across this problem before? Thanks, Ph

creating docx file

2010-09-20 Thread Philip White
Hello, I've tried using the following code to save an attributed string as a docx file. //the attributed string is 'contents' NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: NSOfficeOpenXMLTextDocumentType, NSDocumentTypeDocumentAttribute, nil]; NSRange range = {0,[cont

Drag pasteboard owner asked for data upon quitting

2010-07-13 Thread Philip White
Hello, In my app, in which I've implement various drag and drop mechanisms, I'm getting calls to -pasteboard:provideDataForType: upon quitting if I've performed dragging in my app. Of course, at such time, the drag being long over, my app doesn't have the data to supply. I've verified that the

Drawing invisible window. was Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
On May 15, 2010, at 2:31 PM, Philip White wrote: I wrote this: > -(void)display > { > /* seems to be unnecessary? > NSGraphicsContext *context = [NSApp context]; > NSGraphicsContext *oldContext = [NSGraphicsContext currentContext]; >

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
clicks through transparent parts of windows. Just have to make sure it doesn't end up in the Window menu and whatnot. Thanks again, Philip White ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
> If you can't get a direct answer to your question, could you create a > subclass of NSWindow with a couple of very simple overrides: > > - (void) display > {} > > - (void) displayIfNeeded > {} > > You couldn't leave it out lest it muck with event handling, but you could > order it in, positi

Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
a window to immediately do its constraint checks? I've poked around with FScript trying to figure something out but no luck yet. Many thanks in advance, Philip White ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

overwriting own bundle

2010-04-23 Thread Philip White
Hello, Is it acceptable for an application to overwrite its own bundle, say as part of an update? Assuming of course that it can get any necessary elevated privileges? Or should I spawn a task that waits for the app to quit and then overwrite it? Thanks, Philip _

Re: Determining bounds of a glyph

2010-03-10 Thread Philip White
On Mar 10, 2010, at 12:42 PM, David wrote: > Phillip -- Have you made any progress on this? I am trying to draw glyphs > onto an NSBitmapImageRep using drawGlyphsForGlyphRange:atPoint: and having > similar problems. In my case the symptoms are that underline and > strikethrough are not being

Determining bounds of a glyph

2010-03-08 Thread Philip White
how the layout manager positions glyphs vertically relative to the point you give it? And how do I correctly size my image to contain the glyph? Oh man, I've got to stop working on this now, I'm going to have glyph nightmares tonight… Many thanks, Philip White P.S. I'm doing

Re: Arbitrary Attributes affect text layout

2010-02-02 Thread Philip White
s returned by rangeOfComposedCharacterSequenceAtIndex: I don't have any text mangling. That should solve my problem. Thanks again, Philip White ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Arbitrary Attributes affect text layout

2010-02-02 Thread Philip White
using diacriticals. The problems in my actual program have been much more subtle than those in the test program, probably because I haven't been applying different attributes to each character. Could someone give me some tips on what I'm doing wrong here or how I can avoid this t

method_getNumberOfArguments counts blocks twice

2009-11-20 Thread Philip White
al/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html but that link might be out of date. Thanks, -Philip White ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: opening a document via Finder without NSDocument SOLVED

2009-11-16 Thread Philip White
27 PM, Nick Zitzmann wrote: On Nov 16, 2009, at 12:15 PM, Philip White wrote: Could someone point me to some examples showing how to respond to open document events without using NSDocumentController? <http://developer.apple.com/mac/library/documentation/Cocoa/R

opening a document via Finder without NSDocument

2009-11-16 Thread Philip White
Hello, Could someone point me to some examples showing how to respond to open document events without using NSDocumentController? I think I've figured out that I need to register to receive those events with NSAppleEventManager but I'm having trouble figuring out exactly how to do this.

Re: Are these Apple or 3rd party classes?

2009-10-09 Thread Philip White
On Oct 9, 2009, at 12:51 PM, David Duncan wrote: On Oct 9, 2009, at 6:48 AM, Philip White wrote: I don't really know a lot about the inner workings of the print system, but would anyone be able to tell me if this looks like it is third party stuff (printer drivers?) or Apple stuff?

Re: Are these Apple or 3rd party classes? (printing error)

2009-10-09 Thread Philip White
Ok, I guess I wrote these lines too hastily: On Oct 9, 2009, at 11:02 AM, Philip White wrote: That is the last my code hears of it, below is the stack trace from that point to where the exception is thrown, it doesn't look like my printing view ever gets sent a -drawRect: or any

Re: Are these Apple or 3rd party classes? (printing error)

2009-10-09 Thread Philip White
On Oct 9, 2009, at 10:27 AM, Steve Christensen wrote: A quick Google search came up with a reference to EPIJDataManager that somehow relates to Epson printers. I couldn't find any other info than that. Oops, my Yahoo search came up with nothing. I guess there is a reason Google is more

Are these Apple or 3rd party classes?

2009-10-09 Thread Philip White
Hello, A customer of one of my shareware programs has reported that my program frequently crashes when he tries to print. No one else has reported this kind of error. The stack trace he sends me includes the following lines: (this is just some of them) 20 EPIJDataManager_Core_L

Don't understand NSBrowser's setReusesColumns:

2009-09-29 Thread Philip White
your delegate.?If so why doesn't it just get passed again for convenience's sake? Thanks for your time, Philip White P.S. Unless I'm mistaken (that's not unheard of), this behavior was not present under Leopard, just Snow Leopard. __

NSBrowserDelegate gets passed nil matrix

2009-09-28 Thread Philip White
Hello, I'm having some problems with an NSBrowser in my application upon upgrading to Snow Leopard. The browser is a simple two column setup. I have setup the delegate as an "active delegate" to use Apple's parlance from their developer docs. So I implement - (void)browser:(NSBrowser *)se

Re: Hiding Glyphs

2009-06-12 Thread Philip White
On Jun 5, 2009, at 5:12 PM, Douglas Davidson wrote: As I understand it, what you want to do is not to affect layout at all, but simply to cause certain glyphs not to be displayed. In general this can be problematic, because without knowledge of the font involved one can't necessarily g

-replaceTextStorage: problem

2009-06-08 Thread Philip White
xceptions are thrown, nothing changes. Does this give anyone enough information to offer a suggestion? Thanks, Philip White ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Hiding Glyphs

2009-06-05 Thread Philip White
't be user editable. I think your solution sounds very doable and elegant. Thank you everyone for the help on this, Philip White On Jun 5, 2009, at 5:12 PM, Douglas Davidson wrote: As I understand it, what you want to do is not to affect layout at all, but simply to cause certain gly

Re: Hiding Glyphs

2009-06-05 Thread Philip White
On Jun 5, 2009, at 4:58 PM, Martin Wierschin wrote: Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You might read this post (and Aki's followup): http://www.cocoabuilder.com/a

Re: Hiding Glyphs

2009-06-05 Thread Philip White
That is certainly possible, but it doesn't seem like the elegant solution to me. I want the user to be able to turn these on and off at will. I can keep a backup of the original text and work off of that, but when texts start to be get long that will be a lot copying and deleting of charact

Re: Hiding Glyphs

2009-06-05 Thread Philip White
Hi, Well the text view is read-only for the user. I regret saying "diacriticals". I actually want to hide niqqudot and tashkil in Hebrew and Arabic. As far as I know, these are all separate characters. On Jun 5, 2009, at 9:56 AM, Kyle Sluder wrote: On Fri, Jun 5, 2009 at 8:36

Hiding Glyphs

2009-06-05 Thread Philip White
Hello, Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You can't seem to get glyphs for invisible characters, so I don't really know how to go about this. I did a pretty extensive sea

Re: using fileWrapperFromRange: for lossy conversion

2009-05-20 Thread Philip White
aving an RTF file even if it means a loss of attachments. Also, I have to double check on this, but I think that only attachments and not other attributes make a save to plain text fail. Thanks, Philip On May 20, 2009, at 11:51 AM, Douglas Davidson wrote: On May 20, 2009, at 10:46 AM, P

using fileWrapperFromRange: for lossy conversion

2009-05-20 Thread Philip White
Hello, I am hoping to use NSAttributedString's fileWrapperFromRange:documentAttributes:error: to export text from my program into a variety of formats. However, the routine fails frequently when the NSDocumentTypeDocumentAttribute is set to NSPlainTextDocumentType, to be specific, when

Re: instantiateNibWithOwner: fails due to "mutated while enumerated" [SOLVED]

2009-05-06 Thread Philip White
Many thanks! I don't know how I got this far without ever putting a breakpoint on objc_exception_throw... -Philip Hey Philip - Have you tried running with a breakpoint on objc_exception_throw? Looking at the backtrace when you hit the exception could shed some light on what is happening

instantiateNibWithOwner: fails due to "mutated while enumerated"

2009-05-05 Thread Philip White
Hello, I changed the target on my program from 10.4 to 10.5, built it fine but now the following line of code fails: [[self nib] instantiateNibWithOwner:self topLevelObjects:&topLevelObjects]; where [self nib] is simply -(NSNib*)nib { static NSNib *nib=nil; if