On Aug 19, 2010, at 10:56 PM, Kyle Sluder wrote:
On Thu, Aug 19, 2010 at 4:54 PM, Quincey Morris
quinceymor...@earthlink.net wrote:
On Aug 19, 2010, at 12:44, Brian Postow wrote:
ah, so, the way to zoom is to leave the NSImageView on
NSImageScaleProportionallyUpOrDown, and then change
On Aug 20, 2010, at 1:35 PM, Quincey Morris wrote:
On Aug 20, 2010, at 06:46, Brian Postow wrote:
Ok,. Since the NSImageView wants to always center the image in the bounds
rect, that should make the translation (moving the origin) not too hard, yes?
Yes, though I'd say it differently
On Aug 20, 2010, at 2:52 PM, Quincey Morris wrote:
On Aug 20, 2010, at 10:54, Brian Postow wrote:
I just discovered[imageView setImageAlignment: ] which, as long as the
imageView is bigger than the scrollview, does the correct thing (Lock the
image to the upper left corner
On Aug 18, 2010, at 7:07 PM, Quincey Morris wrote:
On Aug 18, 2010, at 15:01, Brian Postow wrote:
The two things that IKImageView gave me that I'm having trouble making
NSImageView do a similar thing are 1) zooming and 2) the mouse-tools.
1) I can see how to use scaleUnitSquareToSize
[Dagnabit, did reply instead of reply all]
On Aug 19, 2010, at 1:45 PM, Quincey Morris wrote:
On Aug 19, 2010, at 07:16, Brian Postow wrote:
so, are you suggesting that I manually control the zoom-to-fit
functionality, and change the size of the image as the window changes size
myself
, and then change the size of the frame! That
gives me scrollbars!
I think I now need to add some translation when I zoom so that my image doesn't
migrate off the upper right of the screen... Is that the standard way of doing
that?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
in, and it doesn't make the scroll bars appear.
I made the view by creating an NSScrollView, and then changing the content view
of the scrollview to be NSImageView...
Am I supposed to do this in another way?
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
in the nib name and a reference to itself (wonder where
I got that clever idea from!)
I'm sure that this isn't your problem, but you seem to be missing a part of the
method name above...
[currentMessages setObject:message forKey:messageID];
Brian Postow
Senior Software Engineer
Acordex Imaging
On Aug 10, 2010, at 6:49 PM, Brian Postow wrote:
Also, I know that a PDF File stores the resolution for each image that's on a
page, however, once I've turned it into a PDFDocument/PDFPage, is there any way
to get the resolution out?
I happen to know that every page in the document
to know the size of
the image in pixels before hand!
Is there any way to get access to the xObjects in the PDFPage, other than
parsing through the PDF data?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa
On Aug 11, 2010, at 8:42 PM, John Calhoun wrote:
On Aug 11, 2010, at 5:27 PM, Brian Postow wrote:
Is there any way to get access to the xObjects in the PDFPage, other than
parsing through the PDF data?
Unfortunately, no. Hackish as it may be, perhaps you can store the original
image
;
}
But this consistantly gives me the error: tiff data provider: Not a TIFF file,
bad magic number 0 (0x0).
I'm pretty sure that the CGImage is a valid image, and I don't see any options
to AddImage that look helpful...
Is there something obvious that I'm missing?
thanks.
Brian Postow
Senior Software
On Aug 10, 2010, at 5:57 PM, Quincey Morris wrote:
On Aug 10, 2010, at 14:45, Brian Postow wrote:
NSImage* img = [NSImage alloc];
[img initWithData: imgData];
Well, you definitely don't want to do this. There's no guarantee that the
initialized object returned
On Aug 10, 2010, at 6:03 PM, glenn andreas wrote:
On Aug 10, 2010, at 4:45 PM, Brian Postow wrote:
I'm not sure if this is rightly a Cocoa question or Quartz, so I'm posting
on both lists. Sorry for the double...
I have a CGImageRef, and I need to put it into a PDFPage
On Aug 10, 2010, at 6:02 PM, Nick Zitzmann wrote:
On Aug 10, 2010, at 3:45 PM, Brian Postow wrote:
Is there something obvious that I'm missing?
Yes. If you can require Leopard or later, then just create an
NSBitmapImageRep using -initWithCGImage:, then create the NSImage
I created a minimal application that exhibits the problem:
http://www.acordex.com/temp/scancontrolltest.zip
thank you for anything you notice.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev
for sure, but I added [super init] and return
self; to my scancontroller and it didn't help any.
Note: This bug ONLY shows up on 10.5. the program runs fine on 10.6...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing
On Aug 9, 2010, at 5:42 PM, Brian Postow wrote:
Ok, the problem is in the top popup (auto, doublesided, single sided) If I
delete that one, it works, if I leave it, it doesn't.
Can anyone tell me what's different about that one?
The solution seems to be to just delete and re-make that popup
that runs fine on 10.6 is the full version... I think I
found the problem, the top popup. Why that was a problem I dont know. But I
deleted it and re-made it, and it seems to be ok now... weird.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
accessibilityIsIgnored in my code, which I am not, or that there are multiple
copies of the InterfaceBuilder library on the system, which there are not.
has anyone else seen this?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa
On Aug 7, 2010, at 1:31 PM, Kyle Sluder wrote:
On Aug 7, 2010, at 10:19 AM, Brian Postow brian.pos...@acordex.com wrote:
There doesn't seem to be a separate Interface Builder list, so hopefully
someone here can help:
Tools questions typically belong on xcode-users, but this looks like
is irrelevant...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
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
the 72...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
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
On Aug 5, 2010, at 10:48 AM, Graham Cox wrote:
On 06/08/2010, at 12:39 AM, Brian Postow wrote:
([img size].width / [rep pixelWidth]) * 72
and that should be:-
[rep pixelWidth] * 72.0 / [img size].width;
Your formula is inverted, and you should multiply before dividing to get
. At what
point in this process am I supposed to add the resolution into this process?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On Aug 5, 2010, at 1:15 PM, Quincey Morris wrote:
On Aug 5, 2010, at 08:45, Brian Postow wrote:
Given a bunch of bitmap data, and a resolution, how do I create an NSImage
(or CGImage or CGImageSource) with the correct resolution?
Currently, I'm doing:
CGDataProviderRef provider
];
but at that point, everything seems to be in 72dpi! or at least, the image size
is still in points, but the representations size is also in points.
I'm fairly sure I'm making this way harder than it needs to be...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
On Aug 5, 2010, at 3:07 PM, Quincey Morris wrote:
On Aug 5, 2010, at 11:23, Brian Postow wrote:
the representations size is also in points.
Well, to clarify, do you really mean size? I would assume that
imageRep.size.width == image.size.width (both are in points
, is there a way to double buffer the view? To have 2 IKImageViews
and draw into one, and then display it?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
I've been following this list for a while, and have seen very few questions
about the IK family, even though I've had a series of problems with it. Is it
known that it is a lousy way to do things? or am I the only one who has these
problems?
Brian Postow
Senior Software Engineer
Acordex
no responses... It was as if no one
here knows anything about the ImageKit. is it more properly part of Quartz?
I'll ask there as well.
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev
0x9372ace1 in -[IKImageView(IKPrivate)
setImage:imageProperties:imageState:options:]
#13 0x9372c421 in -[IKImageView setImage:imageProperties:]
#14 0x5bb4 in -[FlippedIKImageView setNSImage:] at
FlippedIKImageView.m:84
thanks!
Brian Postow
Senior Software Engineer
Acordex Imaging
sample code somewhere so I can see how these functions are
SUPPOSED to work together?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On May 26, 2010, at 12:29 AM, Scott Anguish wrote:
Another solution for conversion is using -CGImage on NSBitmapImageRep.
Yeah, IIRC, the problem with that strategy is that it requires a lot of mucking
around with color representations...
Brian Postow
Senior Software Engineer
Acordex
= CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);
}
return imgRef;
}
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
.
In other words, Preview CHEATS! or perhaps it doesn't cheat, it does it the
hard way, and there's no way to cheat, depending on how you look at it...
At that point I gave up... if you have more luck, I'd be really interested to
hear about it...
Brian Postow
Senior Software Engineer
Acordex Imaging
the other, I have
prev next under the segmented control... it's a kludge, but it was
the best I came up with...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
the cheap trick route and using spaces to make it look
like multiple labels, as advised by Brian Postow. That's what I did in the
first design and I can live with that.
I'll research about NSToolbarItemGroups some other day and post the results
here. I have things to get done now. ;)
Thanks
on that other
page.
The problem seems to be that I'm changing the value of the textfield
programatically, but some part isn't getting the message.
Does this seem like a reasonable explanation? And either way, any ideas on
what's causing it?
thanks
Brian Postow
Senior Software Engineer
Acordex
On Apr 13, 2010, at 4:59 PM, Kyle Sluder wrote:
On Tue, Apr 13, 2010 at 1:43 PM, Brian Postow brian.pos...@acordex.com
wrote:
I have a textfield that can either be edited by hand, or set through another
control. (It's a page number, so you can jump to page 16 by typing in 16, or
you can
;
if (selection.size.width == 0 || selection.size.height == 0)
selectedImage =full;
else
selectedImage = CGImageCreateWithImageInRect( full, selection);
it's not elegant, but it seems to work.
Again, selectionRect is UNDOCUMENTED so use it at your own risk!
Brian Postow
that this would mean that the default filename to print to would
be bob, or bob.pdf but it's still .pdf.pdf...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
save
to pdf nsprintinfo; for example). Can someone give me a pointer of a better
search term, even if you don't know the answer?
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev
, but the textbox keeps
coming up with .pdf.pdf
any thoughts on where that's coming from?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
to be stable... and anyway, now it's too late, I'm too deep in this to
start over...
So, other than not using IKImageView, any suggestions on how to copy the select
region to the clipboard manually?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
this in Mozilla, so a debugger isn't an option anyway...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
compile as objective-c++ and
then cin and cout may work...
Also, you shouldn't need to do more than
#include streamio.h
like normal... the compiler should know where to find it.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
with rectangles...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
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
, and that
program works. But I can't see any significant differences between it and my
version.
Any suggestions on where to look?
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev
. However I can't figure
out how to do this. I assume I'm going to have to subclass off of IKSaveOptions
and over-ride something, but I can't find any sample code or documentation
that tells me how to do this.
thanks
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
each image into the view at a calculated position and then let it do the
pagination? that seems like it isn't in the spirit of Cocoa... is there some
technique that I'm missing?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa
that - there
is a Apple demo app that shows this.
Really? Which one? IKImageViewDemo doesn't have scrollbars.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
On Mar 17, 2010, at 11:47 AM, Sandy McGuffog wrote:
ImageBrowser, I think.
Sandy
That's an ikimagebrowserview, not an ikimageview. I don't see a
_verticalscrollbar in the outlets in IKImageView...
On Mar 17, 2010, at 5:22 PM, Brian Postow wrote:
On Mar 17, 2010, at 10:42 AM, Sandy
of conflicting origins, then
either scrolling to the top or bottom of the image would make the problem
disappear, but it doesn't have any effect.
Has anyone seen anything like this?
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
happnes.
Is this a problem with my responder chain? Do I have to specially tell
Mozilla that I want these events? or am I likely to have some other
problem that I haven't even thought of?
thanks.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
On Mar 11, 2010, at 7:43 PM, Quincey Morris wrote:
On Mar 11, 2010, at 10:58, Brian Postow wrote:
I should be able to just use the clipRect of the superview, right?
Well, you have to observe something that produces notifications -- which
means the bounds or frame of a view. You're
is that since I'm in my own window within
a plugin inside mozilla, my textField isn't in the responder chain, and so
isn't getting the events...
Typing into the textboxes and hitting return to get the default button works
fine, so maybe that isn't the problem, but it's my current theory...
Brian
On Mar 10, 2010, at 8:04 PM, Quincey Morris wrote:
On Mar 10, 2010, at 15:54, Brian Postow wrote:
Basically, I want the topView to scroll, but I always want to be able to see
the buttonView. So if part of the topView isn't visible because it's been
scrolled up, I want the buttonview
to observe multiple views to catch all the cases.
I should be able to just use the clipRect of the superview, right?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
scrolls, so
buttonview goes off the top, and when I make the window too small, the
imageview covers the buttonview. It then doesn't UNCOVER it when I make the
window bigger or scroll or anything.
Is there something simple that I'm missing here?
thanks.
Brian Postow
Senior Software Engineer
On Mar 10, 2010, at 6:36 PM, Quincey Morris wrote:
On Mar 10, 2010, at 14:58, Brian Postow wrote:
Let say I have three views inside a scrollview with some other content. Top,
buttons and image. buttons and image are both inside top. Top does NOT fill
up the scrollview, however, buttons
, and
Firefox doesn't like to run in the debugger, so the debugger doesn't work...)
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
D'oh. Never mind. I was looking at the wrong method. It *IS* using the
sent-actions.
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
in the context.
Is there a better way to do this?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
On Feb 24, 2010, at 5:23 PM, Paul Sanders wrote:
Not really a Cocoa question... Don't know where else you'd ask it though.
I've been having good luck with getting general programming questions answered
on www.stackoverflow.com...
Brian Postow
Senior Software Engineer
Acordex Imaging
65 matches
Mail list logo