Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
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

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
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

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
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

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
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

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread Rimas
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

Katoeri-Hiragana input underline drawing

2008-12-15 Thread Rimas
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

Re: Text layout responsibility

2008-12-15 Thread Rimas
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

Re: Text layout responsibility

2008-12-15 Thread Rimas
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

Text layout responsibility

2008-12-11 Thread Rimas
, _NSBlockNumberForIndex(): index (0) beyond array bounds (0)' >> invoked observer method: '*** -[MyTestController >> _TextStorageContentChanged:]' observer: 0x14d60b10 notification name: >> 'NSTextStorageDidProcessE

Re: Re: Text layout responsibility

2008-12-12 Thread Rimas
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

Re: Text layout responsibility

2008-12-12 Thread Rimas
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. ___

Re: Text layout responsibility

2008-12-12 Thread Rimas
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

Re: Text layout responsibility

2008-12-12 Thread Rimas
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 *

Properly symbol fonts handling in Cocoa

2009-03-09 Thread Rimas
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

Custom field editor context menu

2010-06-07 Thread Rimas M.
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

Re: Custom field editor context menu

2010-06-07 Thread Rimas M.
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

Best way to compare CGFloats

2010-06-30 Thread Rimas M.
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

Re: Best way to compare CGFloats

2010-06-30 Thread Rimas M.
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

Re: Best way to compare CGFloats

2010-06-30 Thread Rimas M.
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

Long delay of NSPopUpButton first click

2011-08-02 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-08-03 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-08-04 Thread Rimas M.
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

Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
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

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
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

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
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

Re: Text rendered in NSImage is fuzzy

2011-08-26 Thread Rimas 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

Re: Text rendered in NSImage is fuzzy

2011-08-26 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-08-28 Thread Rimas M.
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,

Re: Long delay of NSPopUpButton first click

2011-08-31 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-09-05 Thread Rimas M.
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.

Re: Long delay of NSPopUpButton first click

2011-09-05 Thread 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/

Getting notification about new font is available

2011-09-05 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-09-06 Thread Rimas M.
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

Re: Long delay of NSPopUpButton first click

2011-09-06 Thread Rimas M.
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

Re: Getting notification about new font is available

2011-09-07 Thread Rimas M.
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

Sandboxing + NSSavePanel's accessoryView

2011-10-10 Thread Rimas M.
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

Drawing FULL NSAttributedString

2011-04-27 Thread Rimas M.
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

Re: Drawing FULL NSAttributedString

2011-05-03 Thread Rimas M.
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

Vertical alignment in NSTextView

2011-05-03 Thread Rimas M.
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

Re: Vertical alignment in NSTextView

2011-05-04 Thread Rimas M.
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

Re: NSTextView and NSTextContainer size & clipping area

2011-05-09 Thread Rimas M.
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

Re: MobileMe API for uploading photos

2009-06-18 Thread Rimas M.
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

Re: MobileMe API for uploading photos

2009-06-18 Thread 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

Transparent IKImageBrowserView

2010-07-23 Thread Rimas M.
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

Re: Transparent IKImageBrowserView

2010-07-26 Thread Rimas M.
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

Rotated and scaled CALayer

2010-10-21 Thread Rimas M.
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

Re: Rotated and scaled CALayer

2010-12-07 Thread Rimas M.
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.

Re: Rotated and scaled CALayer

2010-12-13 Thread Rimas M.
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

Shortcut handling in different keyboard layouts

2009-03-26 Thread Rimas M.
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

Re: Shortcut handling in different keyboard layouts

2009-03-27 Thread Rimas M.
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

Re: Shortcut handling in different keyboard layouts

2009-03-27 Thread Rimas M.
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

Re: Shortcut handling in different keyboard layouts

2009-03-31 Thread Rimas M.
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

Re: Shortcut handling in different keyboard layouts

2009-04-01 Thread Rimas M.
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

Re: Shortcut handling in different keyboard layouts

2009-04-01 Thread Rimas M.
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. __