Re: Tracking visibleRect changes using Autolayout

2013-02-18 Thread Kyle Sluder
On Sun, Feb 17, 2013, at 11:46 PM, iain wrote: > I'll give this a go, does -setFrameSize just deal with the visible > portion > when inside an NSScrollView/NSClipView? If so, thank you, that's great. No. You're missing my point. You have -viewWillDraw, an override point at which you know your vie

Dynamic Creation

2013-02-18 Thread Christ Levesque
Ability to create instances of classes that did not exist at the time an app was compiled and dynamically load and link new class at runtime. How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

What is the meaning of id?

2013-02-18 Thread Christ Levesque
___ 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: https://lists.apple.co

Re: What is the meaning of id?

2013-02-18 Thread Jean-Daniel Dupas
http://www.catb.org/esr/faqs/smart-questions.html Le 18 févr. 2013 à 10:20, Christ Levesque a écrit : > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact

Re: What is the meaning of id?

2013-02-18 Thread Mike Abdullah
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithProtocols/WorkingwithProtocols.html#//apple_ref/doc/uid/TP40011210-CH11-SW1 On 18 Feb 2013, at 09:20, Christ Levesque wrote: > > ___ > > Cocoa

Accessors

2013-02-18 Thread Christ Levesque
Technique for funneling all access to an objects properties at runtime. As you know we can use accessors that @property declared but the question is there when you create an objects at runtime how to create accessors for them. How to implement it? ___

Archiving and Unarchiving dynamic objects at runtime

2013-02-18 Thread Christ Levesque
Used to copy or store a group of interrelated dynamic objects at runtime. How to implement it? ___ 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-d

Associative Storage

2013-02-18 Thread Christ Levesque
Organizes data and keys so that data can be quickly and easily accessed used the corresponding keys at runtime based on dynamic objects. How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Flyweight

2013-02-18 Thread Christ Levesque
1- Reduce storage requirements 2- Stand-Ins for other objects How to implement it? ___ 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

Facade

2013-02-18 Thread Christ Levesque
1- Provide a simple interface to a complex subsystem. 2- Limit coupling. How to implement them? ___ 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-

Proxies and Forwarding

2013-02-18 Thread Christ Levesque
1- Allow message to be sent to an objector that is separated from the message's sender by time or space. 2- Forwarding simplifies the capture of messages as invocations so that they can be resent, delayed, repeated, stored, or altered How to implement them? __

Re: Flyweight

2013-02-18 Thread Ronald Oussoren
On 18 Feb, 2013, at 10:59, Christ Levesque wrote: > 1- Reduce storage requirements 2- Stand-Ins for other objects > > How to implement it? Write some code? Your questions are too vague to give sane answers, and also give the impression that you are using the list as a homework anwering servi

Re: Associative Storage

2013-02-18 Thread Fritz Anderson
On 18 Feb 2013, at 3:58 AM, Christ Levesque wrote: > Organizes data and keys so that data can be quickly and easily accessed used > the corresponding keys at runtime based on dynamic objects. > > How to implement it? At your first question or two, I was inclined to answer, but your questions

Re: Associative Storage

2013-02-18 Thread Alex Zavatone
Stop it. On Feb 18, 2013, at 4:58 AM, Christ Levesque wrote: > Organizes data and keys so that data can be quickly and easily accessed used > the corresponding keys at runtime based on dynamic objects. > > How to implement it? > ___ > > Cocoa-dev mai

Re: Tracking visibleRect changes using Autolayout

2013-02-18 Thread Kyle Sluder
Resending to the list. On Feb 18, 2013, at 2:50 AM, iain wrote: > > > On Mon, Feb 18, 2013 at 7:17 PM, Kyle Sluder wrote: >> On Sun, Feb 17, 2013, at 11:46 PM, iain wrote: >> > I'll give this a go, does -setFrameSize just deal with the visible >> > portion >> > when inside an NSScrollView/NSC

Re: Facade

2013-02-18 Thread Ian was here
There is a wonderful book "Cocoa Design Patterns". I would highly recommend reading it. From: Christ Levesque To: "cocoa-dev@lists.apple.com" Sent: Monday, February 18, 2013 2:00 AM Subject: Facade 1- Provide a simple interface to a complex subsystem. 2- L

Re: Dynamic Creation

2013-02-18 Thread Wim Lewis
On 18 Feb 2013, at 1:17 AM, Christ Levesque wrote: > Ability to create instances of classes that did not exist at the time an app > was compiled and dynamically load and link new class at runtime. > How to implement it? NSBundle is the Cocoa way to deal with loading new code at runtime (plugins

No mouseExited when switching windows

2013-02-18 Thread Steve Mills
If I set up an NSTrackingArea in my view as so: NSTrackingArea* trackingArea = [[NSTrackingArea alloc] initWithRect:box options:(NSTrackingInVisibleRect | NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow) owner:self userInfo:nil]; Shouldn't I

Re: No mouseExited when switching windows

2013-02-18 Thread Fritz Anderson
On 18 Feb 2013, at 4:34 PM, Steve Mills wrote: > what do I have to do to be notified when the window the view is no longer the > active window? "Notified" is the right word. NSWindow posts NSWindowDidResignKeyNotification and NSWindowDidResignMainNotification. There are also delegate methods w

Re: Tracking visibleRect changes using Autolayout

2013-02-18 Thread iain
> > > > On Mon, Feb 18, 2013 at 7:17 PM, Kyle Sluder wrote: > > Right, but you're missing the crucial step of caching this drawing. > > You're right, I did miss that, but you'd missed where I'd said I couldn't cache the whole drawing, because it might be 60,000,000 pixels wide. However, you did s

dragging NSTableColumn to another table

2013-02-18 Thread Chuck Soper
I have a view-based table with a single row. I want to be able to drag columns to another table and (within the same table for reordering). For this, I can't use the standard NSTableView column reordering. I've already subclassed NSTableHeaderCell for custom drawing. Does anyone know the steps to

Custom drawn window like Game Center

2013-02-18 Thread Nick
Hi. I'm wondering what would be the most correct way to create an app looking like Game Center (with the title drawn with white font, and custom background images for the titlebar and the client area, but to make it behave completely like a normal OS X application). Is it possible to make such an

Re: Custom drawn window like Game Center

2013-02-18 Thread Kévin Vavelin
You can take a look on WWDC 2012 video session that talk about custom UIView ;) they take find my friends as an example. It's not from scratch, it's all about image pattern and good code. Vavelin Kevin OS X / iOS Developer Entrepreneur On 19 févr. 2013, at 02:16, Nick wrote: > Hi. I'm wonde

Re: No mouseExited when switching windows

2013-02-18 Thread Kyle Sluder
On Feb 18, 2013, at 2:34 PM, Steve Mills wrote: > > Shouldn't I get a mouseExited message when I switch windows via command-` if > the mouse is still within my tracking area? If not, what do I have to do to > be notified when the window the view is no longer the active window? I'm not certain

Re: dragging NSTableColumn to another table

2013-02-18 Thread Graham Cox
On 19/02/2013, at 11:09 AM, Chuck Soper wrote: > Does anyone know the steps to allow custom dragging of a table column to > another table? Is this possible? If I was dealing with an NSView subclass, > I think this would be straightforward. I want to show the entire column > (header + row) when d