Where is the appropriate place to set the intercellSpacing on the
(NSMatrices of) an NSBrowser?
I would like my browser to show the gap in between multiple selected
rows that you see in the Finder et al.
I tried subclassing NSMatrix, and over-riding
-[NSMatrix initWithFrame:
Hi Michael,
Thanks for that - I removed the Locks in my code. However I am still
getting crashes after I changed my code to this:
-(void)openPDFandCreatePreview:(id)sender
{
//[progressOutlet setUsesThreadedAnimation:YES];
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc]
Greetings,
I'm writing a program where the user will define a window and a web
page. Now, my code will take various aspects of what the user defines
(Web Page URL, window size/position, ect) and save them to user
defaults so that they can be loaded again later. At the moment, I have
each
Where is the appropriate place to set the intercellSpacing on the
(NSMatrices of) an NSBrowser?
I would like my browser to show the gap in between multiple selected
rows that you see in the Finder et al.
I tried subclassing NSMatrix, and over-riding
-[NSMatrix initWithFrame:
hi,
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
documentation available for using cocoaMysql?I
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
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.
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 the
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
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
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
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
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
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
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
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
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 have
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
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 this
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
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
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
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
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
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
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
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,
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
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,
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
(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
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 know
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
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
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 been
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:
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:
http://tech.groups.yahoo.com/group/mac-gui-dev/
--Andy
___
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
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 the
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 though.
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
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
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 want the the
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
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
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
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
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:
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
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
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.
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
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
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
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
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:
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
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
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.
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:
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.
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
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
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
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
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
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);
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,
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:
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 Interface
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
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,
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
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
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
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.
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.
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
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
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
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*
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
82 matches
Mail list logo