y does not cover information about how to modify PrintPanel UI
outside changeable panes.
I could do this by getting NSPrintPanel window, accessing its content
view and so on... but I wanted to be sure that this is the only way to
do that. Is there any "right way" to achieve th
change paper
size for example, without printing. This is quite difficult to do that
when having only "Cancel" and "Print" buttons.
Best Regards,
Rimas.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
ntrols to allow
> you to select the paper size and orientation. There are other controls you
> can add (or remove) as well, search the documentation for
> NSPrintPanelOptions (used with NSPrintPanel's -setOptions: method).
Rimas.
___
Co
nd, there is no "legal" methods to get what I
want (additional button in PrintPanel). Right?
Regards,
Rimas.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contac
tInfo:printInfo];
> [printOp setShowsPrintPanel:YES];
> [printOp runOperation];
>
> I got a native printing dialog, So how can I cancel this programtically? Is
> it possiable?
>
Rimas
___
Cocoa-dev mailing list (Cocoa-dev@lists.app
kedTextAttributes returns dictionary, which has only yellow
background. The same you can see when entering Opt+e, for example.
Looks like this depends on input locale. But I have no idea how
Katoeri-Hiragana should be detected.
Any kind of help is very appr
Hello Gordon,
Have you installed 10.6 to run test?
Regards,
Rimas
>NSTextContainer has been broken for some time now and I can't even get
> an acknowledgement from DTS of the bug in spite of the fact that I've had
> others verify it on independent machines using Apple, In
way - delay text
container modification in response to
NSTextStorageDidProcessEditingNotification.
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
, _NSBlockNumberForIndex(): index (0) beyond array bounds (0)'
>> invoked observer method: '*** -[MyTestController
>> _TextStorageContentChanged:]' observer: 0x14d60b10 notification name:
>> 'NSTextStorageDidProcessE
rTextContainer call) is required to use NSRect __realRec
= [__viewLayoutManager usedRectForTextContainer:__viewTextContainer];
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
like delaying text container modification stops throwing
exception. But I should say, this is a strange behavior. I haven't
seen any notes about that in documentation. Maybe missed something.
Anyway, thank you for your help Martin.
Regards,
Rimas M.
___
ed to change container size, is to update it to keep
all entered text. All the time I am keeping text container as small as
it is possible.
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator com
Thank you for the tip. I'll try this also.
Rimas M.
On Fri, Dec 12, 2008 at 1:18 PM, chaitanya pandit
wrote:
> Try changing the container size once the layout is complete, you can do this
> by using the delegate method:
> - (void)layoutManager:(NSLayoutManager *
ter
choosing Wingdings font is changed to default Lucida Grande.
Best Regards,
Rimas M.
___
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-a
ave only my custom items. No spelling & co above my
items. Always. Even with some text selected.
How could I achieve that?
Any help is very appreciate.
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
Hi Martin,
You are right - that works. I can swear that I have tried this before.
But looks like was overridden to much methods. Now I have started this
part from scratch and..tadaaa.
Thank you.
Regards,
Rimas M.
On Tue, Jun 8, 2010 at 12:17 AM, Martin Wierschin wrote:
> Hi Rimas,
>
&g
esAreEqual = ( fabs(C.x - D.x) <= _epsilon ); ,
where _epsilon is something like 0.0001.
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
Or they uses the same '==' and are TRUE only if
points/rects are *really* equal?
Best Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact t
blems. For now I am
going to use:
#define cDefaultFloatComparisonEpsilon 0.0001
#define cEqualFloats(f1, f2, epsilon) ( fabs( (f1) - (f2) ) < epsilon )
#define cNotEqualFloats(f1, f2, epsilon)( !cEqualFloats(f1, f2,
epsilon) )
Thank you for your he
I am wondering - I have
missed something, or should I use some "tricks" to avoid that delay?
Any thoughts are very welcome.
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moder
Hi Glenn,
Thank you for answering. Now I can understand why menu item title is black
in fonts popup of iWork apps. Even if they are selected.
Regards,
RImas M.
On Tue, Aug 2, 2011 at 6:13 PM, Glenn L. Austin wrote:
>
> Yes -- don't do that!!!
>
> You are asking the system to
Drawing item titles into image and caching them for later use works nice.
But I have noticed unacceptable side effect. Normally, when menu is
displayed you can press any letter key, and menu will scroll to the first
item, which title starts with that letter. In my case , NSMenuItems does not
have t
ement that changes for any of
my views. Not only textview.
Any thoughts?
Best Regards,
Rimas M.
___
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
Delegate methods could be used if there is an editable textview. But what if
not? For other things we have "changeFont:, changeColor:,
changeAttributes:". Unfortunately, neither of them are called by action I
have mentioned.
Regards,
Rimas M.
On Wed, Aug 24, 2011 at 1:49 PM, Mike Abdu
You are absolutely right, Martin. That was I have thought at the beginning.
But it didn't worked. Now I have checked more deeply and looks like I have a
bug in my responders chain which prevents me from getting changeAttributes:.
Best Regards,
Rimas M.
On Thu, Aug 25, 2011 at 1:04 AM, M
Regards,
Rimas M.
On Sun, Jun 27, 2010 at 11:47 PM, Ken Ferry wrote:
> I don't think this is likely to be the problem in this case. Text looks
> good no matter where you draw it.
>
> In this case, I think the problem is more likely either
> (1) A lack of what Quartz calls
On Fri, Aug 26, 2011 at 5:21 PM, Kyle Sluder wrote:
> On Aug 26, 2011, at 7:13 AM, "Rimas M." wrote:
>
> > If I am using Core Text (CTLineDraw(line, bitmapDrawContext);) to draw my
> > text into bitmap context, there is no way to get sub-pixels antialiasing
showing time on the first click?
Regards,
Rimas M.
On Thu, Aug 4, 2011 at 12:07 PM, Rimas M. wrote:
> Drawing item titles into image and caching them for later use works nice.
> But I have noticed unacceptable side effect. Normally, when menu is
> displayed you can press any letter key,
On Mon, Aug 29, 2011 at 7:13 PM, Jens Alfke wrote:
>
> On Aug 28, 2011, at 11:25 PM, Rimas M. wrote:
>
> Well.. that worked. Generally. But those images must have transparent
> background. And as I have discovered, when dealing with text drawing, that
> causes loose of sub-p
uplicated" title which is presented by both - image and title itself:
https://www.dropbox.com/s/9psws3vavxpkya4/Duplicated-menuitem-title.png
All I need is "nice" font preview (which should be done by using image) and
keep first letter of title shortcut.
Regards,
Rimas M.
kya4/Duplicated-menuitem-title.png
Regards,
Rimas M.
___
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(at)lists.apple.com
Help/Unsubscribe/
visible in NSFontPanel for that app running
session. I need to catch that moment to update my own fonts popup.
Any thoughts are very appreciate.
Best Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
OK. Answering by myself - to avoid title "duplication" it is possible by
setting "small-invisible" attributed title.
Rimas M.
On Tue, Sep 6, 2011 at 9:47 AM, Rimas M. wrote:
>
> Going to try masked image way right now. As for plain text title, I am
> confused, bec
M.. Actually not. I am using "setImage:" of NSMenuItem to keep default
highlighted item selection drawing and large menu scrolling with
scroll-wheel.
Rimas M.
On Tue, Sep 6, 2011 at 4:40 PM, Glenn L. Austin wrote:
>
> Yes, you will need to set the item's title, unless a
Hello Martin,
Thank you - that helped. And, as you have mentioned, additional checking is
required due to "unnecessary" update calls.
Regards,
p.s. I still don't like Xcode 4. I have overlooked NSFont's class
notifications because of removed TOC at documentation viewer.
Rim
nd it, expands and collapses back. It is
impossible to expand it.
Log has showed, that I am getting - (void)panel:(id)sender
willExpand:(BOOL)expanding with expanding==YES and the second one
with expanding==NO. At the moment I have no clue what is going on.
Any thoughts about this behavior would be
rect, which would fit my whole text.
Any help is very appreciate.
p.s. don't hesitate to ask for an additional information. I could even
make a small sample app if required.
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.c
baselines and offsets of them.. For
example NSFont's boundingRectForGlyph: returns rect, which looks like
gonna fit whole glyph, but currently I have no idea how to calculate
its position (x and y) in the line of TextView/LayoutManager.
Regards,
Rimas M.
On Wed, Apr 27, 2011 at 11:06 PM, A
from either NSLayoutManager or NSATSTypesetter. Just not sure which
exact... Any thoughts?
Best Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
tainerOrigin might do the
trick. Going to try that.
Regards,
Rimas M.
On Tue, May 3, 2011 at 7:05 PM, Andrew Glushchenko
wrote:
> Hello, Rimas
> You can change the inset of the NSTextContainer associated with the
> NSTextView for this purpose. See setTextContainerInset method
As far as I remember, text container inset sets "margins" from both sides:
left and right and/or top and bottom. If text container position is
important according to the text view, this will not work.
2011/5/8 Kyle Sluder
> On May 8, 2011, at 3:27 AM, Дмитрий Николаев
> wrote:
>
> > Custom text
Hello,
Ok. It is possible to access iDisk itself - list content, create
folders, files etc. But I am wondering what to do, that MobileMe
gallery would show uploaded photos? How to create new album in this
gallery manually and upload photos to it?
Any help is appreciate.
Best Regards,
Rimas M
browser.
Regards,
Rimas M.
On 2009.06.18, at 18:03, Nick Zitzmann wrote:
On Jun 18, 2009, at 3:37 AM, Rimas M. wrote:
Ok. It is possible to access iDisk itself - list content, create
folders, files etc. But I am wondering what to do, that MobileMe
gallery would show uploaded photos? How to
variant. "Size" of ghosts depends on alpha
value.
On 3 and 4, flushing context or telling it to clear visible rect makes no sense.
Best Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin req
My fault.
I was sure, that I have checked everything and nothing. I have made a
new empty Xcode project and that worked.
Finally I have found strange bug in my NSScrollView subclass. Fixed it
and looks like everything is OK now.
Thank you.
Best Regards,
Rimas M.
On Fri, Jul 23, 2010 at 4:39
way I know is:
a) to rotate an image by drawing it to the bitmap context
b) create new rotated CGImage from it
c) and then draw it for scaling.
But this way is quite slow. Is there a better one?
Any help is very appreciate.
Best Regards,
Rimas M.
___
Coc
ing to the kCISamplerFilterLinear,
flickering is gone. But zoomed pixels becomes rotated.
Rotated pixels:
http://dl.dropbox.com/u/2030721/ForAppleList/Rotated%20Pixels.png
Expected result:
http://dl.dropbox.com/u/2030721/ForAppleList/Non-rotated_pixels_when_zooming_in.png
Best Regards,
Rimas M.
p.
uite expensive. Unless I am missing something?
Regards,
Rimas M.
___
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(at)lists.apple.com
He
in US and produces
different code. I am wondering - how to check incoming key down events
to achieve that functionality. I am sure, that checking characters is
wrong way. Better would be to check keyCodes, but not perfect. Is
there a third way in Cocoa?
Help woul
m gonna try this right now.
Rimas M.
___
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(at)lists.apple.com
Help/Unsubscribe/Update y
haracter codes you are talking about? Do you
mean [[theEvent charactersIgnoringModifiers] characterAtIndex:0]
(which returns unichar) or something different?
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
that is the problem - what I need to do to ensure that
pressing "p" in US and "RU" keyboard layouts will do the same action
in my app.
Regards,
RImas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
l, like Cyrillic) perform matching by keyCode. I am wondering if
it will work in right way...
Regards,
Rimas M.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
talking about command-key -> actions. I want to implement key
-> action in the correct way. I am quite sure, that such company as
Adobe and long-time project as Photoshop would do that in right way.
Maybe I am wrong. For this reason I am writing here.
Regards,
Rimas M.
__
54 matches
Mail list logo