Blob Detection with Core Image

2008-05-06 Thread Bridger Maxwell
Hello,I am trying to write a program that will detect bright "blobs" of light in an image and then track those blobs of light. I would be a Cocoa version of OpenTouch at http://code.google.com/p/opentouch/. I am wondering the best way to do this sort of image processing with Cocoa frameworks. I ha

Re: Threading - How its done?

2008-05-06 Thread Michael Vannorsdel
Do you have any crash logs or console errors? Setting the progressOutlet to animate should be done on the main thread as well, being a UI object, but I don't think that's your crasher. On May 6, 2008, at 12:07 AM, Karl von Moller wrote: Thanks for that - I removed the Locks in my code. How

Re: SQL

2008-05-06 Thread I. Savant
Fields.Is there any help or documentation available for using cocoaMysql? Have you expended at least a little researching effort and looked at the CocoaMySQL web site or googled "CocoaMySQL documentation"? There's even example code in the same place ... -- I.S. _

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Hi Michael Yes I get this when I change the selection in the table view too quickly: "encountered unexpected object type: 7. missing or invalid object number. invalid `Kids' array: missing or invalid dictionary at index 0." gdb gives all sorts of different reports on what caused it but th

Re: Threading - How its done?

2008-05-06 Thread Michael Vannorsdel
Try changing your thread detaching to just calling the method directly so it's in the same thread, lets make sure it's a threading issue and not something else. On May 6, 2008, at 5:04 AM, Karl von Moller wrote: Hi Michael Yes I get this when I change the selection in the table view too

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Yes I tried that only moments ago. I actually went to the trouble of completely rebuilding the Application again by not using Threads. Instead I'm calling everything from the main thread as it were - directly. The application is pretty solid and function without crashes. I also got rid of t

Re: Threading - How its done?

2008-05-06 Thread Michael Vannorsdel
I'm guessing clicking table items causes a different PDF to be displayed. If so I suspect when you click through them quickly what's happening is a previous call to your thread is completing when a new PDF is supposed to be displayed and you'll need a way to cancel the loading of the previ

Re: SQL

2008-05-06 Thread lbland
On May 6, 2008, at 2:44 AM, vinitha ks wrote: I'm trying to do some database applications using cocoaMySql framework.This is my first database application. could connect with the database,and accesses the table of particular databases.But i couldn't access Fields.Is there any help or docum

Re: SQL

2008-05-06 Thread Johannes Huning
On May 6, 2008, at 12:45 PM, I. Savant wrote: Fields.Is there any help or documentation available for using cocoaMysql? Have you expended at least a little researching effort and looked at the CocoaMySQL web site or googled "CocoaMySQL documentation"? There's even example code in the s

Re: User Default Groups

2008-05-06 Thread Jerry Krinock
On 2008 May, 05, at 23:27, Kevin Ferguson wrote: In poking around other plist flies Well, that's a good way to start Kevin, but now you've got to start poking around some documentation... I have seen several 'groups' of data stored under a heading. Is it at all possible to take each indi

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
I think you are right. It is the PDF loading that appears to be causing the crashing. I think your guess on the previous call to the Thread completing when a new PDF should load is absolutely the problem. Trouble is I really don't know how to implement the Unique ID system you speak of. I m

Re: Cannot remove an observer ... because it is not registered as an observer.

2008-05-06 Thread Steve Steinitz
Summary: KVO compliance discussion Detailed problem description Request (to Jens) for clarification What I've tried A failed workaround A crappy, unsound workaround Hi Jens, Jack and List Participants, Thanks, Jens, for your reply. On 4/5/08, Jens Alfke wrote: Cannot

Resetting IKImageEditPanel's Effects Selection

2008-05-06 Thread Jamie Phelps
I have an IKImageBrowserView and IKImageView. When the selection changes in the IKImageBrowserView, the IKImageView is updated with the newly selected image. If I invoke the IKImageEditPanel by double clicking the IKImageView and choose an effect such as Sepia, the image changes appropriate

Re: Cannot remove an observer ... because it is not registered as an observer.

2008-05-06 Thread Hamish Allan
On Tue, May 6, 2008 at 2:27 PM, Steve Steinitz <[EMAIL PROTECTED]> wrote: > All my properties have a setters and getters and have the appropriate calls > to > > will|did Access|Change ValueForKey > > before/after any change. Is there more that I need to do? You don't say whether or not you

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Thomas Engelmeier
On 05.05.2008, at 18:20, Jens Alfke wrote: I find it safest to go with the Windows encoding, because it's a superset of both ASCII and ISO-Latin-1 that maps all 256 characters, so it never returns nil. It's also the default encoding on Windows, so there's a lot of text out there in the wil

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
With help from Stéphane Sudre, I found that calling - registerForDraggedTypes: somewhere outside the destination's -init: method solves the issue. Can anyone shed light on why this would be? My views are created programatically rather than loaded from a .nib, so there shouldn't be any interf

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread I. Savant
> With help from Stéphane Sudre, I found that calling > -registerForDraggedTypes: somewhere outside the destination's -init: method > solves the issue. Can anyone shed light on why this would be? I've never personally experienced the problem you're describing, but if you're literally calling thi

Disable HUD in WebKit pdf display

2008-05-06 Thread jda
Hi, I'm using WebKit to display pdfs in my app. The HUD that comes up when you mouse over the lower portion of the pdf display is inappropriate for my use (and actually can obscure some controls when a window is resized to a small size). My question is, how do I disable this feature so that

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Andy Lee
I haven't been following this thread and I'm not sure this would make a difference, but do you really mean -init:, or -initWithFrame:? --Andy On May 6, 2008, at 10:27 AM, Michael Gardner wrote: With help from Stéphane Sudre, I found that calling - registerForDraggedTypes: somewhere outside t

Re: Blob Detection with Core Image

2008-05-06 Thread Bridger Maxwell
I think I was unclear on where I was lost. I didn't think that I would be able to use the OpenTouch blob detection framework, because I couldn't pass it a CIImage, and converting the CIImage to an NSBitMapImageRep was too slow. The only way to pass the image data to the blob detection library was t

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
My actual init method has a different signature, and calls - initWithFrame: on its superclass. I was trying to abstract away extra details, but I shouldn't have made it look like an actual method signature. Sorry about that. -Michael On May 6, 2008, at 9:34 AM, I. Savant wrote: With help

Re: Threading - How its done?

2008-05-06 Thread Michael Vannorsdel
There's several ways, whatever you can think of to implement canceling or ignoring a previous request. For instance maybe just use an incrementing counter. Before you detach the thread tell the PDF view what number it should expect, then pass that number to the thread, which will then be

Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Jens Alfke
On 5 May '08, at 11:31 PM, Martin Redington wrote: I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numberOfRows:numberOfColumns:] to set the intercellSpacing. I can see it getting called, but I don't get any gaps between rows, and when I browse the NS

Re: Blob Detection with Core Image

2008-05-06 Thread Raphael Sebbe
I understand, processing is made on CPU anyway. The overhead you get is because you duplicate (or redraw) the image before processing it. I believe you actually get a CVImageBufferRef from QTKit, not a CIImage, which resides in memory (not VRAM, as it comes from a camera anyway). You could get acc

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread I. Savant
On Tue, May 6, 2008 at 10:44 AM, Michael Gardner <[EMAIL PROTECTED]> wrote: > My actual init method has a different signature, and calls -initWithFrame: > on its superclass. I was trying to abstract away extra details, but I > shouldn't have made it look like an actual method signature. Sorry about

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
Upon further investigation, I've found that if I call - registerForDraggedTypes: before adding the view to its parent window with -setContentView:, I never get the -draggingEntered: messages. If I do so afterwards, everything works properly. Is this expected behavior? As for posting the co

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread I. Savant
On Tue, May 6, 2008 at 11:34 AM, Michael Gardner <[EMAIL PROTECTED]> wrote: > Upon further investigation, I've found that if I call > -registerForDraggedTypes: before adding the view to its parent window with > -setContentView:, I never get the -draggingEntered: messages. If I do so > afterwards, e

'Raises For Not Applicable Keys' not enough to step exception raises?

2008-05-06 Thread Sean McBride
Hi all, I have an app that uses an NSOutlineView bound to an NSTreeController in entity mode. The tree controller matches all 'Shape' entities, but there are also sub-entities named 'Square' and 'Circle'. I have a master-detail UI. All 'Shapes' have a 'name' attribute and there is no problem th

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Jens Alfke
On 6 May '08, at 7:03 AM, Thomas Engelmeier wrote: As the OP wants to create NSStrings with data created by his application I'm pretty sure he will not want the the Windows encoding - unless he parses text documents originating from Windows. He didn't say where the data originates from, or

Re: Blob Detection with Core Image

2008-05-06 Thread Jean-Daniel Dupas
You have to properly configure your QTVideoContext to get this. By default, most of the CoreVideo sample code uses QTOpenGLTextureContextCreate(), and so, you get CVOpenGLTextureRef. If you want to retreive CVPixelBuffers, you have to create your QTVisualContext using the QTPixelBufferContext

Cocoa UI Question

2008-05-06 Thread Kristopher Matthews
(I apologize in advance if this question is not appropriate for this list.) I'm writing a small app to graph the speed of an attached hard disk under various circumstances. My thoughts for the interface are at http://homepage.mac.com/kmmx/UI.png - where the left custom view will be my graph

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
On May 6, 2008, at 10:47 AM, I. Savant wrote: On Tue, May 6, 2008 at 11:34 AM, Michael Gardner <[EMAIL PROTECTED]> wrote: Upon further investigation, I've found that if I call -registerForDraggedTypes: before adding the view to its parent window with -setContentView:, I never get the -draggi

Re: Threading - How its done?

2008-05-06 Thread Michael Ash
On Tue, May 6, 2008 at 12:46 AM, Karl von Moller <[EMAIL PROTECTED]> wrote: > Many thanks for your reply on this - much appreciated. I did think it had > something to do with the images being swapped out as often the crashes > occurred as I quickly changed selection in the table view. Because I kno

Re: Multiple controls in a table cell

2008-05-06 Thread Randall Meadows
On May 5, 2008, at 6:17 PM, j o a r wrote: On May 5, 2008, at 4:46 PM, Hamish Allan wrote: I don't remember where we got it, but if you Google "SubviewTableViewController" or "SubviewTableViewCell" it should get you in the right direction. It's by Joar Wingfors: http://joar.com/code/ On

Re: Cocoa UI Question

2008-05-06 Thread Stéphane
On May 6, 2008, at 6:16 PM, Kristopher Matthews wrote: (I apologize in advance if this question is not appropriate for this list.) I'm writing a small app to graph the speed of an attached hard disk under various circumstances. My thoughts for the interface are at http://homepage.mac.com

Re: Cocoa UI Question

2008-05-06 Thread I. Savant
> My question is: what is the proper method for the user to specify "measure > this disk and append to the current graph"? I've thought of double clicking, > or drag and drop. Both cases feel a little strange to me so I'm wondering > what others think. First, I think other forums/lists have bee

NSComboBox adjustments

2008-05-06 Thread Howard Shere
I need to do one of two things to my NSComboBox sublcass: 1) Change the text hilite color OR 2) Change it so when an item is selected from the NSComboBox popup menu and the text is inserted into the text area, it is not hilited. I have tried overriding selectText: but that just makes the t

Re: Cocoa UI Question

2008-05-06 Thread Buddy Kurz
I agree with the table on the left. If the goal is to include multiple drives in the graph for comparison, perhaps a column of check boxes could indicate inclusion in the graph. Buddy Kurz On May 6, 2008, at 9:36 AM, Stéphane wrote: On May 6, 2008, at 6:16 PM, Kristopher Matthews wrote:

Re: Cocoa UI Question

2008-05-06 Thread Andy Lee
On May 6, 2008, at 12:16 PM, Kristopher Matthews wrote: (I apologize in advance if this question is not appropriate for this list.) Here's a list it's definitely appropriate for: --Andy ___ Cocoa-

NSCollectionView animation complaint

2008-05-06 Thread David Carlisle
If I have two items in my NSCollectionView and I remove the first item, the animation causes the second item to slide underneath the first item which then pops out of existence revealing the second item underneath. It would look better if the animation caused the second item to slide over

Open Recent->foo suddenly broke

2008-05-06 Thread David Springer
All, My File->Open Recent-> menu suddenly broke and I am having trouble debugging this problem. What messages are sent from the items in this menu, and where are they sent? I want to see if somehow I broke a link somewhere... Thanks! - Dave.S ___ Coc

Re: NSCollectionView animation complaint

2008-05-06 Thread I. Savant
> If I have two items in my NSCollectionView and I remove the first item, the > animation causes the second item to slide underneath the first item which > then pops out of existence revealing the second item underneath. It would > look better if the animation caused the second item to slide over

KVO Difficulties With Array Controller Selection didChange/willChange

2008-05-06 Thread Colin Cornaby
I have an array controller for a bunch of objects that are called "client". Clients have a one to many relationship with "records" (the relationship is accessible with the key "records). I am observing the array controller based on the key "selection.records". I'm running into a problem tho

Resource fork & metadata - max size?

2008-05-06 Thread Karl Moskowski
I've been working on an Objective-C Zip utilities class that wraps around minizip. It works and it's mostly compatible with archives produced by Leopard's Archive Utility. I was able to create AppleDouble ._ files using Uli Kusterer's UKXattrMetadataStore class a slightly hacked version of

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Aki Inoue
On 2008/05/06, at 8:56, Jens Alfke wrote: On 6 May '08, at 7:03 AM, Thomas Engelmeier wrote: As the OP wants to create NSStrings with data created by his application I'm pretty sure he will not want the the Windows encoding - unless he parses text documents originating from Windows. He

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Clark Cox
On Tue, May 6, 2008 at 10:45 AM, Aki Inoue <[EMAIL PROTECTED]> wrote: > > On 2008/05/06, at 8:56, Jens Alfke wrote: > > > > > > On 6 May '08, at 7:03 AM, Thomas Engelmeier wrote: > > > > > > > As the OP wants to create NSStrings with data created by his application > I'm pretty sure he will not wa

Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Corbin Dunn
On May 6, 2008, at 8:07 AM, Jens Alfke wrote: On 5 May '08, at 11:31 PM, Martin Redington wrote: I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numberOfRows:numberOfColumns:] to set the intercellSpacing. I can see it getting called, but I don't get

Deep sleep and file wrappers?

2008-05-06 Thread Keith Blount
Hi, I have an application that saves its information as a file package. My NSDocument subclass overrides -saveDocument: to save individual files within the project folder (because there can be hundreds of files and I wouldn't want to save the whole file wrapper every time a single file is chang

Re: Threading - How its done?

2008-05-06 Thread Army Research Lab
To the original poster: How much experience do you have with threads? I'm a little confused reading through your posts, I can't tell if you are familiar with pthreads, and just need to figure out NSThreads, or if you have no threading experience at all. To everyone that has both Cocoa and thread

Re: Threading - How its done?

2008-05-06 Thread glenn andreas
On May 6, 2008, at 1:30 PM, Army Research Lab wrote: To the original poster: How much experience do you have with threads? I'm a little confused reading through your posts, I can't tell if you are familiar with pthreads, and just need to figure out NSThreads, or if you have no threading e

Re: Update NSMenuItem while displaying

2008-05-06 Thread Jere Gmail
Thanks, it worked with this line: [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSEventTrackingRunLoopMode]; On Sat, May 3, 2008 at 2:50 PM, Ricky Sharp <[EMAIL PROTECTED]> wrote: > > On May 3, 2008, at 7:31 AM, Jere Gmail wrote: > >> I have a NSMenuItem int a NSStatusBarItem that displays

User Preferences Causing Application to Crash

2008-05-06 Thread Patrick Altman
I am very new to cocoa development but a rather seasoned software engineer in general. I am attempting to get a handle on how user preferences work in the context of the NSUserDefaultsController and Bindings. I follow the steps outlined here: http://developer.apple.com/cocoa/cocoabindings.h

Re: User Preferences Causing Application to Crash

2008-05-06 Thread John Stiles
I'm going to guess that your preferences window is set to release-on-close. This can be set in Interface Builder; check the Inspector for this window and make sure that checkbox is not set. Patrick Altman wrote: I am very new to cocoa development but a rather seasoned software engineer in gen

Bindings & Checkbox in NSTableView

2008-05-06 Thread Steven Huey
Hi, I want to bind the value of a checkbox in a column of a NSTableView to a custom object managed by an NSArrayController. I have the NSArrayController setup to manage a class I've created using Obj-C 2.0 properties, and added keys in the IB inspector for the NSArrayController to match t

Re: User Preferences Causing Application to Crash

2008-05-06 Thread Patrick Altman
That did the trick! Thanks. On May 6, 2008, at 2:10 PM, John Stiles wrote: I'm going to guess that your preferences window is set to release-on- close. This can be set in Interface Builder; check the Inspector for this window and make sure that checkbox is not set. ___

Re: 'Raises For Not Applicable Keys' not enough to step exception raises?

2008-05-06 Thread Keary Suska
on 5/6/08 9:51 AM, [EMAIL PROTECTED] purportedly said: > I have an app that uses an NSOutlineView bound to an NSTreeController in > entity mode. The tree controller matches all 'Shape' entities, but > there are also sub-entities named 'Square' and 'Circle'. I have a > master-detail UI. All 'Sha

bindings and mutliple NIBs

2008-05-06 Thread Torsten Curdt
I have an array of objects. The main application loads the objects via Core Data. The controller is in the main NIB. Now I have a separate NIB for the preferences. In this this NIB I have a NSTableColumn I want to bind to the controller for the objects. But the controller for the objects is

Re: Bindings & Checkbox in NSTableView

2008-05-06 Thread Hamish Allan
On Tue, May 6, 2008 at 8:31 PM, Steven Huey <[EMAIL PROTECTED]> wrote: > I set the table column to use a checkbox using: > > NSButtonCell *cell = [[NSButtonCell alloc] init]; > [cell setButtonType:NSSwitchButton]; > [cell setImagePosition:NSImageOnly]; > [cell setControlSize:NSSma

Re: bindings and mutliple NIBs

2008-05-06 Thread Hamish Allan
On Tue, May 6, 2008 at 9:06 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > I assume it's not OK to create a second controller in the preferences NIB > bound to the same managedObjectContext. I wouldn't assume that -- as long as all your GUI code is kept to the main thread, there shouldn't be any

@property (readonly, retain) ???

2008-05-06 Thread Optical Ali
Hi, What does it mean to to have both readonly and retain in property declaration? My understanding is that retain is for assignment. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: @property (readonly, retain) ???

2008-05-06 Thread Jake Carter
As far as I understand it, you can omit the 'retain' if your property is readonly. You are correct that the retain is only for assignments. "Specifies that retain should be invoked on the object upon assignment." From: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articl

Sending an image to Preview to preview the image

2008-05-06 Thread Kimo
My app produces a list of images (NSData format), and I'd like the app Preview to display the image when the user double-clicks on an image in my app. Currently I use NSPerformService as shown below, which works, but Preview always asks to save the file when you close its window. I've se

WebView does not expose bindings in IB 3

2008-05-06 Thread Adam Radestock
Has anyone else come across this? - I have a WebView in a window, with an NSProgressIndicator which animates when the WebView is loading it's content. I used to bind the "Animates" binding on the progress indicator to the "isLoading" binding using the Inspector in Interface Builder, but now

Re: 'Raises For Not Applicable Keys' not enough to step exception raises?

2008-05-06 Thread Sean McBride
On 5/6/08 2:03 PM, Keary Suska said: >> I have an app that uses an NSOutlineView bound to an NSTreeController in >> entity mode. The tree controller matches all 'Shape' entities, but >> there are also sub-entities named 'Square' and 'Circle'. I have a >> master-detail UI. All 'Shapes' have a 'n

Re: Resource fork & metadata - max size?

2008-05-06 Thread Sean McBride
On 5/6/08 1:43 PM, Karl Moskowski said: >My question is, how big can the resource fork and Finder info get? Is >reading them into an in-memory NSData object feasible? Well, Files.h has: OSErr FSGetForkSize(FSIORefNum forkRefNum, SInt64 *forkSize) So looks like a fork can be very big indeed. T

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Michael Watson
Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. 2. If you must use Preview, you could write the image to a temp file and tell Preview to open that via NSWorkspace's - openFile:withApplication: meth

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Ricky Sharp
On May 6, 2008, at 10:56 AM, Jens Alfke wrote: On 6 May '08, at 7:03 AM, Thomas Engelmeier wrote: As the OP wants to create NSStrings with data created by his application I'm pretty sure he will not want the the Windows encoding - unless he parses text documents originating from Windows.

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Bill
On May 6, 2008, at 3:31 PM, Michael Watson wrote: Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. True, but preview has other advantages, such as saving the file to various formats. Sure I could

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Ricky Sharp
On May 6, 2008, at 5:40 PM, Bill wrote: On May 6, 2008, at 3:31 PM, Michael Watson wrote: Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. True, but preview has other advantages, such as saving th

Re: @property (readonly, retain) ???

2008-05-06 Thread Bill Bumgarner
On May 6, 2008, at 2:14 PM, Optical Ali wrote: What does it mean to to have both readonly and retain in property declaration? My understanding is that retain is for assignment. If your property is truly readonly, then retain is largely irrelevant. However, you can also make a readonly property

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Kyle Sluder
On Tue, May 6, 2008 at 10:44 AM, Michael Gardner <[EMAIL PROTECTED]> wrote: > My actual init method has a different signature, and calls -initWithFrame: > on its superclass. I was trying to abstract away extra details, but I > shouldn't have made it look like an actual method signature. Sorry about

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Graham Cox
I'm not sure if it's documented as such, but I *think* this is expected behaviour. The reality is that the dragging is really implemented by the underlying window (ultimately using Carbon) so if the view has no reference to its window when the drag types are registered, they probably just "

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Thanks to all that posted. To the original poster: How much experience do you have with threads? I'm a little confused reading through your posts, I can't tell if you are familiar with pthreads, and just need to figure out NSThreads, or if you have no threading experience at all. As I

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Bill
On May 6, 2008, at 3:50 PM, Ricky Sharp wrote: For another feature of the app (which also generates PDF), I changed the workflow to first run an NSSavePanel to let the user specify file name and location. I then generate the PDF at that location and launch Preview to open it. I'm not sure

Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Martin Redington
Thanks Corbin, this over-ride seems to work. Surely this shouldn't be that obscure though ... - (void) addColumn { [super addColumn]; int lastColumnIndex = [self lastColumn]; NSMatrix *matrix = [self matrixInColumn:lastColumnIndex]; NSSize intercellSpacing = NSMakeSize(0, 1);

Re: Threading - How its done?

2008-05-06 Thread John Calhoun
On May 6, 2008, at 4:51 PM, Karl von Moller wrote: Does anyone know whether there is a way to get progress info from a PDF loading into a view - percentage/bytes loaded for example? No, I can think of no way to do this. Be careful with threading and PDF... PDFKit classes are ultimately bas

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
Which is irrelevant, since I'm constructing my views programatically. Anyway, I've long since verified that my methods are all getting called as expected (except for -draggingEntered:, of course). -Michael On May 6, 2008, at 6:24 PM, Kyle Sluder wrote: On Tue, May 6, 2008 at 10:44 AM, Micha

Re: -draggingEntered: never gets called [solved?]

2008-05-06 Thread Michael Gardner
If so, it should be documented. As soon as I can get together a working test case, I'll submit a bug report. It would be nice to get some confirmation from an Apple engineer, though, since I'm having trouble duplicating the issue. -Michael On May 6, 2008, at 6:30 PM, Graham Cox wrote: I'm

Re: WebView does not expose bindings in IB 3

2008-05-06 Thread Keary Suska
on 5/6/08 4:19 PM, [EMAIL PROTECTED] purportedly said: > I have a WebView in a window, with an NSProgressIndicator which > animates when the WebView is loading it's content. > I used to bind the "Animates" binding on the progress indicator to the > "isLoading" binding using the Inspector in Interf

Re: Threading - How its done?

2008-05-06 Thread Karl von Moller
Awesome feedback! I couldn't find any info on this anywhere! At least I can stop the search. With regard to Threading PDF's, while I didn't want to specifically build for 10.5 only, using NSOperation's or using some sort of priority queue process - does this offer any protection for threadi

Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-06 Thread Martin Wierschin
I think any way you do this things are going to get messy. However, in terms of simplicity using break characters to split one NSTextStorage between containers might be the easiest. Yes, you'd have to filter incoming content to be sure that "real" break characters don't pollute your content

Re: Threading - How its done?

2008-05-06 Thread Adam R. Maxwell
On May 6, 2008, at 5:43 PM, John Calhoun wrote: On May 6, 2008, at 4:51 PM, Karl von Moller wrote: Does anyone know whether there is a way to get progress info from a PDF loading into a view - percentage/bytes loaded for example? No, I can think of no way to do this. Be careful with thread

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Jens Alfke
On 6 May '08, at 10:45 AM, Aki Inoue wrote: Actually, I don't recommend using CP1252 as the generic fallback encoding like this. The encoding does have gaps, and the handling of those invalid gaps varies between conversion engines. CF/NSString treat the invalid bytes strictly and return n

setImage for NStepper like NSButton

2008-05-06 Thread 王仕俊
Hi,all We know we can setImage for a Button(NSButton), But now I need setImage for NSStepper. How should I do? Many thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: Resource fork & metadata - max size?

2008-05-06 Thread Jens Alfke
On 6 May '08, at 10:43 AM, Karl Moskowski wrote: My question is, how big can the resource fork and Finder info get? Is reading them into an in-memory NSData object feasible? There's a very old tech-note called "Don't Abuse The Managers" that describes limitations of the Resource Manager. I

Re: How to convert UInt8 array to NSString

2008-05-06 Thread Ricky Sharp
On May 6, 2008, at 9:22 PM, Jens Alfke wrote: On 6 May '08, at 10:45 AM, Aki Inoue wrote: Actually, I don't recommend using CP1252 as the generic fallback encoding like this. The encoding does have gaps, and the handling of those invalid gaps varies between conversion engines. CF/NSStrin

Re: setImage for NStepper like NSButton

2008-05-06 Thread Ricky Sharp
On May 6, 2008, at 9:24 PM, 王仕俊 wrote: We know we can setImage for a Button(NSButton), But now I need setImage for NSStepper. How should I do? I don't think that is possible. You could try creating a matrix with two NSButtonCells. You could then set them to send events continuously

NSSegmentedControl selection mode

2008-05-06 Thread Andrew Kimpton
I have an NSSegmentedControl which I'm trying to make work just like the one in iCal. I have two central segments (Week & Month - no days) and a segment at each end for forward/back. If the control is in 'select one' mode I can have either week or month selected and drawn in the darkened s

NSBrower selectedCells lies

2008-05-06 Thread Martin Redington
more NSBrowser problems (on Leopard, building with Xcode 2.5 for Tiger+). My NSBrowser is set to allow multiple and branch selection. In my custom NSBrowserCell subclass, I over-ride -[NSBrowserCell drawInteriorWithFrame:inView:] to do some custom drawing when the cell is selected (I need to draw

customize print panel dialog

2008-05-06 Thread Ghufran Ahamad
Hi All, I want to customize print panel dialog. I'm adding a button on print panel dialog but it is not getting show on dialog. I'm using following code snippet. Let me know where the problem is - (void)printShowingPrintPanel:(BOOL)flag { NSPrintOperation *printOp; NSButton*

RE: Group rotation

2008-05-06 Thread Ghufran Ahamad
Hi Graham, Thanks for reply, still did not get any success. We are looking into your code and trying to find out how you implement the group - rotation. Thanks, Ghufran Ahmad +91 - 9953130470 Skype ID: ghufran_khan81 AOL ID: gahmad81 -Original Message- From: Graham Cox [mailto:[EMAIL PRO