Sandboxing + NSSavePanel's accessoryView

2011-10-10 Thread Rimas M.
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 very appreciate. Best Regards, Rimas M

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. Rimas M. On Tue, Sep 6

Re: Long delay of NSPopUpButton first click

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

Re: Long delay of NSPopUpButton first click

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

Getting notification about new font is available

2011-09-06 Thread Rimas M.
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 requests or moderator comments to the list. Contact

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. apple.list...@gmail.com wrote: Going to try masked image way right now. As for plain text title, I am confused, because if I do

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 gl...@austin-soft.comwrote: Yes, you will need to set the item's title, unless

Re: Long delay of NSPopUpButton first click

2011-08-31 Thread Rimas M.
On Mon, Aug 29, 2011 at 7:13 PM, Jens Alfke j...@mooseyard.com 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-pixels

Re: Long delay of NSPopUpButton first click

2011-08-29 Thread Rimas M.
showing time on the first click? Regards, Rimas M. On Thu, Aug 4, 2011 at 12:07 PM, Rimas M. apple.list...@gmail.com 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

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 kenfe...@gmail.com 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 font

Re: Text rendered in NSImage is fuzzy

2011-08-26 Thread Rimas M.
On Fri, Aug 26, 2011 at 5:21 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Aug 26, 2011, at 7:13 AM, Rimas M. apple.list...@gmail.com 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: Catching actions of fonts Typography panel

2011-08-25 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, Martin

Catching actions of fonts Typography panel

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

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 Abdullah cocoa

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

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 gl...@austin-soft.comwrote: Yes -- don't do that!!! You are asking the system

Long delay of NSPopUpButton first click

2011-08-02 Thread Rimas M.
- 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 moderator comments to the list

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 kyle.slu...@gmail.com On May 8, 2011, at 3:27 AM, Дмитрий Николаев

Re: Vertical alignment in NSTextView

2011-05-04 Thread Rimas M.
the trick. Going to try that. Regards, Rimas M. On Tue, May 3, 2011 at 7:05 PM, Andrew Glushchenko nosetin...@gmail.com wrote: Hello, Rimas You can change the inset of the NSTextContainer associated with the NSTextView for this purpose. See setTextContainerInset method of NSTextView. 2011/5/3 Rimas M

Re: Drawing FULL NSAttributedString

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

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

Drawing FULL NSAttributedString

2011-04-27 Thread Rimas M.
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.com) Please do not post admin

Re: Rotated and scaled CALayer

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

Re: Rotated and scaled CALayer

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

Rotated and scaled CALayer

2010-10-21 Thread Rimas M.
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. ___ Cocoa-dev mailing list (Cocoa-dev

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

Transparent IKImageBrowserView

2010-07-23 Thread Rimas M.
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 requests or moderator comments

Best way to compare CGFloats

2010-06-30 Thread Rimas M.
= ( 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 at cocoa-dev

Re: Best way to compare CGFloats

2010-06-30 Thread Rimas M.
'==' 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 the moderators at cocoa-dev-admins

Re: Best way to compare CGFloats

2010-06-30 Thread Rimas M.
problems. 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 help. Regards, Rimas M

Custom field editor context menu

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

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 mar...@nisus.com wrote: Hi

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

Re: Shortcut handling in different keyboard layouts

2009-04-01 Thread Rimas M.
... 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/Update your Subscription: http

Re: Shortcut handling in different keyboard layouts

2009-04-01 Thread Rimas M.
would do that in right way. Maybe I am wrong. For this reason I am writing here. 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

Re: Shortcut handling in different keyboard layouts

2009-03-31 Thread Rimas M.
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 admin requests or moderator comments to the list. Contact

Re: Shortcut handling in different keyboard layouts

2009-03-27 Thread Rimas M.
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 post admin requests or moderator

Shortcut handling in different keyboard layouts

2009-03-26 Thread Rimas M.
- 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 would be very appreciate. Regards, Rimas M