Hi,
For my iPad app, I'm using a UIViewController subclass called
SidebarViewController to display some stuff in a sidebar. In the sidebar I have
a calendar control. I'm using the open source Kal component from
http://github.com/klazuka/Kal. In the -viewDidLoad method of
SidebarViewController,
Hi,
I have a popover that contains a UITableView. This UITableView has a
cell with a text field in it:
http://cl.ly/1b50a21ca8202d22db1b
When the popover opens near the bottom of the screen, and I tap the
text field to edit it, the keyboard comes up, and the popover moves up
to avoid being cover
I have a button that is linked to an action in my view controller.
This action is supposed to pop up a UIMenuController. Here's the code:
UIMenuController *menuController = [UIMenuController sharedMenuController];
UIMenuItem *listMenuItem = [[UIMenuItem alloc]
initWithTitle:@"List" action:@sel
I have a UITableViewCell with a custom backgroundView (for custom cell
drawing). To make it look proper with my cell, I need to move both the delete
disclosure indicator (the red circle with a white line through it) and the
Delete button itself over a few pixels. How do I change the position?
T
I have an iPhone app and I'm trying to implement table row reordering and to
still have it work with Core Data.
Here's my code:
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath
*)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
if (fromIndexPath.section =
You shouldn't be doing any drawing in awakeFromNib. See this example code:
http://developer.apple.com/mac/library/samplecode/RoundTransparentWindow/index.html
It demonstrates how to create and display a custom window using an NSWindow
subclass.
On 2010-02-14, at 10:36 PM, Sandro Noël wrote:
>
That did the trick, thanks :)
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-02-14, at 12:22 AM, David Duncan wrote:
> On Feb 13, 2010, at 9:45 PM, PCWiz wrote:
>
>> I have a really simple UIView subclass, all it contains is this:
>>
>>
I have a really simple UIView subclass, all it contains is this:
- (void)drawRect:(CGRect)rect
{
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 1.0f);
CGContextFillEllipseInRect(ctx, CGRectMake(10.0f, 10.0f, 100.0f,
100.0f
Thanks, setting the layer frame to an appropriate size did the trick :)
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-02-11, at 5:55 PM, David Duncan wrote:
> On Feb 11, 2010, at 4:50 PM, PCWiz wrote:
>
>> Yep, I just tried that (sent a reply a min
In my UIViewController I create a CAGradientLayer in the viewDidLoad method:
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = CGRectMake(self.view.bounds.origin.x,
self.view.bounds.origin.y + 44.0, self.view.bounds.size.width,
self.view.bounds.size.height - 44.0);
Yep, I just tried that (sent a reply a minute ago) but the drawInContext:
method still isn't being called.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-02-11, at 5:47 PM, David Duncan wrote:
> On Feb 11, 2010, at 3:44 PM, PCWiz wrote:
>
>> I
lay on the view? You need to request
> that a view redraw when the data or state used for drawing a view changes.
>
> Bob
>
> On Feb 11, 2010, at 3:44 PM, PCWiz wrote:
>
>> I'm trying to do some custom drawing in a CALayer subclass by overriding the
>> draw
I'm trying to do some custom drawing in a CALayer subclass by overriding the
drawInContext: method, but it appears that its not being called. In my subclass
I just have this:
- (void)drawInContext:(CGContextRef)theContext
{
NSLog(@"drawInContext called");
}
Then in the viewDidLoad method of
One way to do it (the way Chrome does it, if I'm not mistaken) is to add the
toolbar view as a subview of NSThemeFrame. NSThemeFrame is a private subclass
of NSView that can be accessed by using [[yourWindow contentView] superview].
Note, however, that this is entirely undocumented so use it at
Is there a Cocoa equivalent (Mac) of Cocoa Touch's (iPhone)
stretchableImageWithLeftCapWidth:topCapHeight: method? If not, how can
I achieve the same function?
Thanks
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
If you really want to do a wizard, this might be a good starting point:
http://www.cimgf.com/2008/03/03/core-animation-tutorial-wizard-dialog-with-transitions/
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-13, at 4:11 PM, Kyle Sluder wrote:
> On Wed, Jan 13, 201
Yep, its definitely the correct text field. Well there are many NSTextFields on
the screen (each in a collection view item) and all of them resize in unison
when the window is resized. It still is reporting 185 as the width. e.g.:
0x20046df80 Str: "“60 Unique 404 Error Pages” http://is.gd/5X43e
I'm using NSLog(@"%f", [self frame].size.width); from within my NSTextField
subclass to check the width of the text field (pretty standard stuff). But for
some reason, its reporting incorrectly. See this video to see what I mean:
http://img191.imageshack.us/img191/2460/screenflow.mp4
I have it
One idea would be to draw the text into the view at the normal angle, then
convert the contents of the view into an NSImage, put that into an NSImageView
and rotate that instead. I'm not sure how good of a solution this is, or if
there is a better solution, but I've found that manipulating image
Hi Ryan,
Long time no talk, but distros aren't a good way to go with Snow Leopard.
Retail install is easier and better.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-04, at 12:31 PM, Ryan R. Moos wrote:
> any chance you might know a rapidshare link for OS X 1
using an animation proxy to move the main view up and the new view up as
> well.
>
>
>
> On Jan 3, 2010, at 6:27 PM, PCWiz wrote:
>
>> This isn't something thats extremely difficult to do. You will need to
>> create NSView subclasses for the scores at the top.
This isn't something thats extremely difficult to do. You will need to create
NSView subclasses for the scores at the top. You can use
NSAttributedString/NSMutableAttributedString to create styled text, and use
their drawInRect method to draw the text into the view. It would be a good idea
to r
calling NSWindow's setBorderThickness:forEdge: on NSMaxYEdge.
>
> Don't know if it will work, but that would be where I would start.
>
> HTH,
> Alex
>
> On Jan 3, 2010, at 11:41 AM, PCWiz wrote:
>
>> I have a window that looks like this right n
I have a window that looks like this right now:
http://img22.imageshack.us/img22/2953/screenshot20100103at123.png
I've removed the titlebar buttons and everything, however there is still that
space at the top where the titlebar usually is. Is there a way to remove that
space (in other words, a
This probably isn't relevant, but NSBoxes aren't the best way to create
crosshairs. It would be cleaner to just make a (very) simple NSView subclass
that draws the 2 lines.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-03, at 9:30 AM, Bengt Nilsson wrote:
> Hi
zmann wrote:
>
> On Jan 2, 2010, at 3:45 PM, PCWiz wrote:
>
>> And also I need some clarification on the mouse event eater. Would it just
>> be something like this in the subclass:
>>
>> - (void)mouseDown:(NSEvent*)theEvent
>> {
>> // Do nothing
Ah OK, sounds good. I'll give that a shot.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-02, at 3:50 PM, Nick Zitzmann wrote:
>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reques
else?
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-02, at 3:39 PM, Nick Zitzmann wrote:
>
> On Jan 2, 2010, at 3:31 PM, PCWiz wrote:
>
>> In any case, I still want the resize corner to work, and using a window or a
>> view to cover it would bloc
ly of Matt Gemmell's MAAttachedWindow, but that one has
an HUD appearance (not the default OS X NSWindow look I want).
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-02, at 3:19 PM, Nick Zitzmann wrote:
>
> On Jan 2, 2010, at 3:12 PM, PCWiz wrote:
The window is going to be "attached" to an NSStatusItem, so it would be best if
it stayed in one spot.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-02, at 3:09 PM, Nick Zitzmann wrote:
>
> On Jan 2, 2010, at 11:48 AM, PCWiz wrote:
>
>
I have a bottom bar in my Cocoa app, and when I drag from the bottom bar it
moves the window. One solution here would be to add a child window that covers
the bottom bar and intercepts all mouse events, but I want the window to be
able to resizeable by the bottom right corner and a child window
Thanks for the suggestions. What I have in mind is just a standard NSWindow,
but with a few tweaks to integrate it better with NSStatusItem. I'll first try
the child window method. The only reason I dont want to completely draw the
whole window is that resizing is not easily implemented with a c
I want to draw an NSWindow that looks similar to this:
http://vibealicious.com/site/apps/notify/screenshots/mainUIFull.png
In that it has a typical NSWindow appearance with the bottom bar and such, but
instead of a title bar at the top, I want to draw a little arrow.
Is there a simple way to d
I'm using this in my NSTextField subclass to get a recessed text style:
[[self cell] setBackgroundStyle:NSBackgroundStyleRaised];
It works fine other than the fact that if the text field's NSAttributedString
contains any text with an alternate text color set (using
NSForegroudColorAttributeName
True, but I don't think there are any official APIs to do this.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-28, at 1:18 AM, Scott Anguish wrote:
>
> On Dec 27, 2009, at 9:16 PM, PCWiz wrote:
>
>> There's a PLIST file in /L
There's a PLIST file in /Library/Preferences called
com.apple.SoftwareUpdate.plist. It has 2 keys of type NSDate called
"LastAttemptDate" and "LastSuccessfulDate". LastSuccessfulDate is probably what
you want, so just parse that plist file in your app and that should give you
what you want.
In
http://macatomy.com
On 2009-12-23, at 6:56 PM, Michael Nickerson wrote:
>
> On Dec 23, 2009, at 2:08 PM, PCWiz wrote:
>
>> It all seems to be stable now, so turning off background layout worked :-)
>>
>> Thanks
>>
>
>
> Hey, I know you worked out
I've been going through the NSTrackingArea docs and Apple examples but I can't
seem to figure it out.
1. Does NSTrackingArea support mouseDown events? If so, how would I find if the
click is within the bounds of a tracking rect in my mouseDown handler?
2. For mouseEntered and mouseExited handler
It all seems to be stable now, so turning off background layout worked :-)
Thanks
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-23, at 9:45 AM, Douglas Davidson wrote:
>
> On Dec 22, 2009, at 6:07 PM, PCWiz wrote:
>
>> The issue clas
27;ll post back if it goes wrong again.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-22, at 2:19 PM, Greg Guerin wrote:
> PCWiz wrote:
>
>> So for example I could do performSelectorOnMainThread with an
>> NSMutableArray, for example, then have
So for example I could do performSelectorOnMainThread with an NSMutableArray,
for example, then have the method add the result object to the array and return
it?
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-22, at 1:29 PM, Greg Guerin wrote:
>>
>> I would lik
http://macatomy.com
On 2009-12-22, at 12:22 PM, Bill Bumgarner wrote:
>
> On Dec 22, 2009, at 11:19 AM, PCWiz wrote:
>
>> Is there any easy way to execute a portion of code on the main thread
>> without going through the mess of delegates and selectors?
>
>
> Delegates ha
Yeah sounds like the exact same problem I'm having. The problems aren't
consistent at all, it just happens once every few thousand strings.
Is there any easy way to execute a portion of code on the main thread without
going through the mess of delegates and selectors?
Independent Cocoa Develope
ors. The use of
NSInvocationOperation seems quite simple, so I'm not seeing where this is going
wrong. You can see the code where I invoke the operation in the screenshot.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-22, at 11:49 AM, PCWiz wrote:
> L
Lately I've been getting errors like these with my app:
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** -[NSRecursiveLock unlock]: lock
( '(null)') unlocked when not locked
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** Break on _NSLockError() to debug.
2009-12-21 13:07:48.437 TwitMenu[2512:4103]
I keep getting these errors in the Console:
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** -[NSRecursiveLock unlock]: lock
( '(null)') unlocked when not locked
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** Break on _NSLockError() to debug.
2009-12-21 13:07:48.437 TwitMenu[2512:4103] *** -[NSRecu
Developer, Macatomy Software
http://macatomy.com
On 2009-12-18, at 10:14 AM, David Duncan wrote:
> On Dec 17, 2009, at 6:26 PM, PCWiz wrote:
>
>> But I'm happy to say that I eventually found the cause of my problem. One of
>> the frameworks I was using was compiled using "
ut, it seems that you do have a serious
> threading-related problem. I wouldn’t ignore this, it may raise its head any
> time in the future and bite you badly.
>
> Good luck
> Kai
>
> On 18.12.2009, at 03:26, PCWiz wrote:
>
>> Thanks, will do.
>>
>> And re
ke wrote:
>
> On Dec 16, 2009, at 10:04 PM, PCWiz wrote:
>
>> I'm not using NSLock or NSRecursiveLock directly. I'm using @synchronized on
>> an object that multiple threads acess, to allow only one thread to access
>> the object at a time.
>
> The
to trap it next time. But I wonder, how
would using @synchronized create these issues? The use of
@synchronized seems relatively simple, but maybe I'm missing something
here.
On 2009-12-16, at 9:07 PM, Jens Alfke wrote:
On Dec 15, 2009, at 8:05 PM, PCWiz wrote:
*** -[NSRecursi
I've sent Joar the source off list, but meanwhile I tried Kyle Sluder's
suggestion to run gdb on the app. Here's the log:
pcwiz-mbp:~ Indragie$ gdb
/Users/pcwiz/Desktop/TwitMenu/build/Release/TwitMenu.app
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC
this fixed).
Thanks
On 2009-12-15, at 11:11 PM, Joar Wingfors wrote:
>
> On 15 dec 2009, at 16.48, PCWiz wrote:
>
>> I have 2 frameworks set in a Copy Files build phase and both are being
>> copied as they should.
>
>
> So you intend for your frameworks to be co
et to
@executable_path/../Frameworks (as it should). Would changing @loader_path to
@executable_path in the other framework make a difference?
On 2009-12-15, at 11:11 PM, Joar Wingfors wrote:
>
> On 15 dec 2009, at 16.48, PCWiz wrote:
>
>> I have 2 frameworks set in a Copy Files buil
Is there any way to do this using one mac?
On 2009-12-15, at 9:33 PM, Eric Schlegel wrote:
>
> On Dec 15, 2009, at 8:05 PM, PCWiz wrote:
>
>> This would explain my apps screwup. If it can't connect then that would
>> explain the request timed out and authentication
ation errors. The problem is, I have no idea
why this only happens on the Release config *when launched from Finder*
And I don't know how to debug this, as this problem doesn't occur when the app
is launched by Xcode. Is there a way to load an executable into gdb manually?
Thanks
On 200
emonstrate what's happening.
On 2009-12-15, at 5:40 PM, Kiel Gillard wrote:
> In Xcode, are you running the target's executable with any command line
> arguments?
>
> Kiel
>
> On 16/12/2009, at 11:34 AM, PCWiz wrote:
>
>> I'm having a *really* st
I'm having a *really* strange issue here. First of all, my app works fine in
Debug mode. I can launch it from Xcode or from Finder and it will work fine.
The problem comes when using "Release". If I pick the Release config and then
click the Build button from Xcode, the app still works fine. _Ho
Ah I understand, that makes sense. Thanks.
On 2009-12-14, at 9:09 PM, Nick Zitzmann wrote:
>
> On Dec 14, 2009, at 9:07 PM, PCWiz wrote:
>
>> So to make it clear, I invoke the method as an NSInvocationOperation then in
>> the method I do this whenever I need to access t
)doResourceHungryTask {
...
@synchronized (myDictionary) {
[myDictionary setObject:anObject forKey:@"testKey"];
}
}
Is that correct?
On 2009-12-14, at 9:03 PM, Nick Zitzmann wrote:
>
> On Dec 14, 2009, at 8:59 PM, PCWiz wrote:
>
>> "do
y delegate class. Would I still
need to lock/unlock (I'm modifying the class's properties from itself, not
another class)? I'm not sure on the exact workings of NSInvocationOperation, I
just found out about it.
On 2009-12-14, at 6:02 PM, Nick Zitzmann wrote:
>
> On Dec 14
Its being loaded into an NSOperationQueue, and I'm using methods like
setObject:forKey: on the dictionary, not replacing the whole thing.
Thanks
On 2009-12-14, at 5:51 PM, Nick Zitzmann wrote:
>
> On Dec 14, 2009, at 5:19 PM, PCWiz wrote:
>
>> I need to modify an NSMut
I need to modify an NSMutableDictionary in my delegate class from within an
NSOperation subclass. What's the best way to do this? I could just use the
property setter method, but is this even acceptable?
Thanks___
Cocoa-dev mailing list (Cocoa-dev@lis
Thanks, looks like what I need :-)
On 2009-12-14, at 11:42 AM, Ross Carter wrote:
> On Dec 13, 2009, at 8:55 PM, PCWiz wrote:
>
>> Hi,
>>
>> I am, for lack of a better word, "enabling" links in my
>> NSMutableAttributedString by applying the NSLinkAttr
Hi,
I am, for lack of a better word, "enabling" links in my
NSMutableAttributedString by applying the NSLinkAttributeName attribute to
them, and I'm changing their color from the default blue to a different color
using NSForegroundColorAttributeName. This all works fine. The only issue: When
y
Sounds like good reasoning to me :-)
On 2009-12-13, at 4:18 PM, Graham Cox wrote:
>
> On 14/12/2009, at 10:08 AM, PCWiz wrote:
>
>> Thats a bummer. Are there any 3rd party implementations of the smooth
>> scrolling feature?
>>
>> For example, there's t
STableView.
>
> I found that smooth scrolling doesn't work in an NSTableView enclosed in an
> NSScrollView. This regression was in Leopard: smooth scrolling worked in
> Tiger.
>
> -Jeff
>
>
> On Dec 13, 2009, at 4:35 PM, PCWiz wrote:
>
>> There was
There was a smooth scrolling feature that was introduced in 10.3 which seems to
be automatically enabled for NSTextViews, but it doesn't seem to work for
NSScrollViews with custom views.
Is there anything I need to do to enable this? Or is this enabled by default
now (I'm using the 10.5 SDK, ru
I'm using CATransition to swap views with [[view animator]
replaceSubview:oldView with:newView]
The issue here is that when swapping between views with a large amount of
content (e.g. a collection view with hundreds of items) there is a very
noticeable 1-2 second delay before the animation star
noticeable speed increase.
Hope this helps anyone else having similar issues. Key point: just do the
drawing yourself.
On 2009-12-08, at 5:31 PM, Corbin Dunn wrote:
>
> On Dec 8, 2009, at 3:40 PM, PCWiz wrote:
>
>> Hi,
>>
>> I am using NSCollectionView for a pr
Sorry I'm new to Obj-C/Cocoa, how would I do this performance profiling?
On 2009-12-08, at 4:50 PM, Mike Abdullah wrote:
>
> On 8 Dec 2009, at 23:40, PCWiz wrote:
>
>> Hi,
>>
>> I am using NSCollectionView for a project in which the collection view is
>>
Hi,
I am using NSCollectionView for a project in which the collection view is
populated with about 200 items, each containing about 4 subviews (image view,
and a few text fields).
Scrolling is not smooth at all, and lags quite a bit. I'm wondering, would just
drawing the text and images as par
Is it possible to have a vertical NSScroller start from a specified Y
coordinate rather than at the top of its scroll view?
Thanks___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the lis
king 1) is most likely. By calling it an "error" suggests you don't
> fully understand what is going on. This is an exception. Have you used the
> debugger to step through the code and test? Sounds not to me.
>
> On 6 Dec 2009, at 00:23, PCWiz wrote:
>
>> I'm h
I'm having an *extremely* strange problem here. I'm using this simple if
statement to find out if an array controller is not empty:
if ([[_arrayController arrangedObjects] count] > 0)
And this is what it results in:
-[NSCFData count]: unrecognized selector sent to instance 0x134d010
If I take
Is there any way to completely disable horizontal scroll on an
NSScrollView? I looked around but couldn't find any answers. I know
you can easily hide the horizontal scroll bar itself in IB, but that
doesn't stop the user from scrolling using the mouse (I can scroll
horizontally on my MBP's
Thanks, worked great.
On 2009-12-02, at 6:37 PM, Graham Cox wrote:
On 03/12/2009, at 12:26 PM, PCWiz wrote:
What is the best way to get a reference to my NSWindowController
object from subviews of its window?
[[theView window] windowController];
--Graham
What is the best way to get a reference to my NSWindowController
object from subviews of its window?
Thanks
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moder
-23, at 11:02 AM, Matt Neuburg wrote:
On Mon, 23 Nov 2009 10:32:24 -0700, PCWiz
said:
CATransition can be used to animate views, but is there a way to
animate complete windows (NSWindow's or NSPanel's)?
Animate *what* about a complete window? If you mean what's *in* the
wind
CATransition can be used to animate views, but is there a way to
animate complete windows (NSWindow's or NSPanel's)?
Thanks
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
009, at 8:49 AM, PCWiz wrote:
Good to know that I'm not the only one experiencing this. The
easiest solution I guess is to keep an array of the controller
objects, which I will try. Is this how you mean:
NSMutableArray *controllerObjects = [[NSMutableArray alloc] init];
ImagePanelContr
Thanks for everyone's help, what I'll probably end up doing is
creating a panel manager class to keep strong references to the panels.
On 2009-11-22, at 3:58 PM, Rob Keniger wrote:
On 23/11/2009, at 8:49 AM, PCWiz wrote:
Good to know that I'm not the only one experie
On 22-Nov-09, at 5:06 PM, PCWiz wrote:
I have a separate XIB in which there is an NSPanel containing an
image view to set an image. When I call a method, it creates a new
instance of the controller for the nib, loads the nib, and then
sets the image of the image view via the controller ob
Hi,
I have a separate XIB in which there is an NSPanel containing an image
view to set an image. When I call a method, it creates a new instance
of the controller for the nib, loads the nib, and then sets the image
of the image view via the controller object. Like this:
- (IBAction)newIma
I just realized that the animation only seems to be slow when I'm
running screen capture software to capture video from my screen. Is
this just a coincidence or is it a real possibility that the capture
is slowing the animation down?
On 2009-11-11, at 11:14 AM, PCWiz wrote:
Thank
Thanks for your replies :-) Here you can see the distortion.
Before setWantsLayer -
http://img21.imageshack.us/img21/43/screenshot20091110at412.png
After - http://img682.imageshack.us/img682/2558/screenshot20091110at424.png
Martin, I tried an NSAnimation subclass and the animation itself
wor
I want to swap out one view with another by pushing the old view aside
to slide in a new view (the kCATransitionPush type). To use
CoreAnimation I need to work with CALayers for my views. The problem
is that attaching a backing layer to my window content view through
setWantsLayer distorts
Oops, my mistake. That delegate method seems to work fine on
NSTextField as well
many thanks
On 2009-11-02, at 9:05 PM, Jens Alfke wrote:
On Nov 2, 2009, at 8:01 PM, PCWiz wrote:
By default the clicked URL just opens in the default web browser.
Is there any way to override this behaviour
I probably should have mentioned that I'm using an NSTextField, not an
NSTextView to display the text. And based on the current limitations
imposed by my app, I cannot use an NSTextView.
Is there an equivalent delegate method to this for NSTextField?
Thanks
On 2009-11-02, at 9:05 PM, Jens Al
I'm making text clinks in an NSMutableString clickable through adding
the NSLinkAttributeName attribute to any text that is a URL inside the
string.
By default the clicked URL just opens in the default web browser. Is
there any way to override this behaviour and have my own code run in
pl
if thats the way to do it then I'll go with that :-)
On 2009-11-02, at 4:24 PM, Sean McBride wrote:
On 11/2/09 4:10 PM, PCWiz said:
In my model class I have 2 properties, timeInterval and postedTime.
postedTime contains a static date. timeInterval uses the
timeIntervalSinceNow method to
In my model class I have 2 properties, timeInterval and postedTime.
postedTime contains a static date. timeInterval uses the
timeIntervalSinceNow method to find the number of seconds that has
passed by since the date in postedTime.
What I want to do is around every 5 minutes, update the tim
];
}
..and I get the same result
On 2009-10-31, at 2:54 PM, Kyle Sluder wrote:
On Oct 31, 2009, at 1:10 PM, PCWiz wrote:
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor whiteColor] set];
NSBezierPath *path = [NSBezierPath
bezierPathWithRoundedRect:dirtyRect xRadius:6.0 yRadius:6.0];
You
I'm using AMCollectionView (Code - harmless Cocoa, clone of
NSCollectionView) to display a collection of views. In my prototype
view subclass I have this:
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor whiteColor] set];
NSBezierPath *path = [NSBezierPath
bezierPathWithRoundedRect:d
Its much easier to just build a Universal Binary (which will run on
any architecture) and distribute that. A few megabytes here and there
will not make a huge difference, as others have said.
On 2009-10-26, at 4:50 PM, Nick Rogers wrote:
Hi,
In my some 2 yrs of cocoa programming with cocoa,
The reason is that for some of the collection view items, the normal
size is not enough to fully display some of the content inside the view.
On 2009-10-25, at 5:54 PM, Graham Cox wrote:
On 26/10/2009, at 10:42 AM, PCWiz wrote:
I need to
Why? What's the real story?
It's l
I need to programatically resize the view of an NSCollectionViewItem
as soon as it is created. So far I tried this (subclassing
NSCollectionView and overriding newItemForRepresentedObject)
@implementation IGCollectionView
- (NSCollectionViewItem *)newItemForRepresentedObject:(id)object {
d.
On 2009-10-23, at 6:06 PM, Graham Cox wrote:
On 24/10/2009, at 10:43 AM, PCWiz wrote:
I basically need a way of getting the height of the text view
needed to display all the text.
Welcome to the wonderful world of the Cocoa text system! You need to
go deeper into the text system a
I have an NSView subclass (the view of an NSCollectionViewItem) that
needs to dynamically resize in order to fully display the contents of
a NSTextView that it contains. I've tried just doing this off the top
of my head:
[self setFrame:NSMakeRect([self frame].origin.x, [self
frame].origin
Had a little brain freeze for a second :P the negative sign had me a
bit confused, my eyes generally associate long numbers with a negative
sign as bad. Thanks for the clarification.
On 2009-10-22, at 10:06 PM, Graham Cox wrote:
On 23/10/2009, at 3:02 PM, PCWiz wrote:
Tried using %f to
Tried using %f to log it instead of %d, but it gives me this:
2009-10-22 22:01:55.459 TestApplication[8629:a0f] -2160.459210
On 2009-10-22, at 9:13 PM, Graham Cox wrote:
On 23/10/2009, at 2:10 PM, Stephen J. Butler wrote:
The method returns a NSTimeInterval, which is a double, but the %d
fo
1 - 100 of 146 matches
Mail list logo