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
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?
>
>
On Aug 19, 2010, at 10:56 PM, Kyle Sluder wrote:
> On Thu, Aug 19, 2010 at 4:54 PM, Quincey Morris
> wrote:
>> On Aug 19, 2010, at 12:44, Brian Postow wrote:
>>
>>> ah, so, the way to zoom is to leave the NSImageView on
>>> NSImageScaleProportionallyUpOrD
On Aug 19, 2010, at 7:54 PM, Quincey Morris 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 the size of the frame!
>> That gives me scrollbars!
&g
ah, so, the way to zoom is to leave the NSImageView on
NSImageScaleProportionallyUpOrDown, 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
[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 imag
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.
>>
tion? Currently, I
zoom 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 S
t; :self];
> //initWithApp passes 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];
>
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 c
der for that to work correctly, I need 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
__
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 doc
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:,
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
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
mg;
}
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.
air enough. Although the no return was a casualty of the making it minimal
process... The thing 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
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
" owner:self];
> }
>
>
> IOW, you forgot to return self. Or to call [super init].
>
Hmm, well, good things to do for sure, but I added [super init] and return
self; to my scancontroller and it didn't help any.
Note: This bug
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
On Aug 7, 2010, at 1:31 PM, Kyle Sluder wrote:
> On Aug 7, 2010, at 10:19 AM, Brian Postow 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 thi
hat I'm calling
"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
e fact that its in a toolbar 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
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.
NSImage* img = [[NSImage alloc] initWithData:imgData ];
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
Se
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?
>>
nches. 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
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 inve
I just get 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
IKImageView in the past few days and gotten 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
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 Engine
ively, 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
rties:imageState:options:]
#12 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 Sof
ack doesn't get called until timeout.
Is there same 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.a
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
A
ource =
CGImageSourceCreateWithData((CFDataRef)imgData, NULL);
imgRef = CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);
}
return imgRef;
}
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
get items with no space between them. Maybe that's what toolbar groups
>> are for -- I've never had occasion to use them.
>
> For now, I am going the "cheap trick" route and using spaces to make it look
> like multiple labels, as advised by Brian Postow. That
uot;prev" under 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 (Co
ound manually.
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
Senio
On Apr 13, 2010, at 4:59 PM, Kyle Sluder wrote:
> On Tue, Apr 13, 2010 at 1:43 PM, Brian Postow
> 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
>
goes to page 1, because now it thinks it's 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 c
t's not elegant, but it seems to work.
Again, selectionRect is UNDOCUMENTED so use it at your own risk!
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do n
ching for the wrong thing (cocoa "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
__
NSVerticalPagination = 0;
NSVerticallyCentered = 1;
}
I woud think 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
_
e dictionary IS correct, 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
e, if you make all of your
.m files into .mm files, it should automatically compile as objective-c++ and
then cin and cout may work...
Also, you shouldn't need to do more than
#include
like normal... the compiler should know where to find
t I'm doing
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 com
Preview is built on (or so I've read), so I figured
it had 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 cli
ogram off of PDFKitLinker2 from the apple dev site, 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
cument into a PDFView, and then
print the PDFView. At least there's no fiddling around with rectangles...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
ually
add 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
__
file. 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
Aco
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:
>
>
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
was just a matter 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 Enginee
thing
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 Imagi
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
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 boun
ing. If you ever get to doing this, you'll have to
> experiment to find the right thing to observe, and it's possible you might
> have to observe multiple views to catch all the cases.
>
I should be able to just use the clipRect of the superview, right?
Brian Postow
Seni
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
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
oll, the whole thing just 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.
Br
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 reques
lso, note: this is a mozilla plugin, 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 d
to the view(s) and re-snapshot the view
to put it back 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
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 Eng
66 matches
Mail list logo