Badge drawing like NSDockTile

2012-07-23 Thread qvacua
Hi, is there a canonical AppKit-way to draw badges to an arbitrary NSImage which looks like the badges drawn by NSDockTile? Thanks in advance, Tae ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

notification upon restoring a version

2012-06-25 Thread qvacua
Hi, are there notifications or delegate methods of NSDocument (or NSDocumentController) which are called when the user invokes Versions and/or restores a version of a document? Thanks in advance and best, Tae ___ Cocoa-dev mailing list (Cocoa-dev@lists

Zooming in and out in WebView

2012-05-17 Thread qvacua
Hi! I am having trouble to zoom in and out in WebView. I have a subclass of WebView with the following zoom code: - (void)zoomByFactor:(CGFloat)factor { WebFrameView *frameView = self.mainFrame.frameView; NSView *const docView = frameView.documentView; NSScrollView *scrollView = docV

Re: NSView + NSScrollView, not scrolling

2012-05-07 Thread qvacua
No, it does not help. I think since I am not scaling the view or sth. like that, the difference between frame and bounds should be irrelevant for this problem. Tae On Sat, May 5, 2012 at 6:12 PM, Andy Lee wrote: > On May 5, 2012, at 3:31 AM, qvacua wrote: >> - (void)drawRect:(NSRect)

Re: NSView + NSScrollView, not scrolling

2012-05-05 Thread qvacua
Yes, since I am using a mouse, the scroll bars are visible and using the scroll wheel I can scroll. Tae On Sat, May 5, 2012 at 12:24 PM, Stephane Sudre wrote: > A question that could give a better idea of the issue: > > Is the scroller thumb visible? > > On Sat, May 5, 2012 at 1

NSView + NSScrollView, not scrolling

2012-05-05 Thread qvacua
I have got a very basic question about NSScrollView. I embedded my custom NSView into an NSScrollView using Xcode's "Embed In..." menu item. The following is my custom NSView: @implementation MyView - (void)drawRect:(NSRect)dirtyRect { [[NSColor yellowColor] set]; NSRectFill([self frame])

Re: OCMock in Xcode 4

2011-04-12 Thread qvacua
hat a compatible library can not be found; > are you sure your framework is built for the target you are trying to use it > with? > > On Sun, Apr 10, 2011 at 1:00 PM, qvacua wrote: >> >> Hi, >> >> I'm trying to to get OCMock to work with Xcode 4. I cr

OCMock in Xcode 4

2011-04-10 Thread qvacua
Hi, I'm trying to to get OCMock to work with Xcode 4. I created a new blank project with unit tests enabled. I added OCMock.framework file to the test target. What I get is that the framework cannot be loaded because the image is not found. I tried with a copy phase to copy the framework to the te