This worked well (after a little tweaking!) thanks - got the whole
caboodle running now. I note that NSObject's superclass is NULL, so I
had to switch the order of the while() test in order to correctly
detect plain NSObjects (admittedly this will probably never be needed
in practice).
On Wed, Mar 26, 2008 at 10:31 PM, Rick Mann [EMAIL PROTECTED] wrote:
Question 2: I can see how a text field gets populated when you select
an item in the table. How can I get a one table to populate based on
the selection in another?
Each table should have its own ArrayController if the two
It doesn't look like NDHotKeyControl implements a setReadyForHotKeyEvent:
method. Do I perhaps have an older version of the NDHotKeyControl source
code? Surely there is something I'm missing here. I figure I can take
your word for it on this, since you wrote the class and all. ;-)
-
I'd like to implement something like Xcode's accelerator key-
assignment prefs pane. Are there standard icons representing all the
special keys on the keyboard? If so, how do I get at them?
TIA,
--
Rick
___
Cocoa-dev mailing list
Is there any way to programmatically invoke Exposé?
TIA,
--
Rick
___
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
On 27 Mar 08, at 01:11, Rick Mann wrote:
I'd like to implement something like Xcode's accelerator key-
assignment prefs pane. Are there standard icons representing all the
special keys on the keyboard? If so, how do I get at them?
They're all Unicode characters. ⌘ is one of them; the rest
Hi Rick,
On 2008-03-27, at 18:47, Rick Mann wrote:
Is there any way to programmatically invoke Exposé?
You could open /Applications/Expose.app, depending on the level of
flexibility you need.
Jonathon Mah
[EMAIL PROTECTED]
___
Cocoa-dev
On 27.03.2008, at 09:32, Gerriet M. Denkmann wrote:
float widthOfTab = [usedFont advancementForGlyph:(NSGlyph)' '].width
* 4;
I'm pretty new to the text engine myself, but I don't think an
NSGlyph can be generated by typecasting a char. Since Monaco or
Courier are monospaced, it just so
If I may be so bold, I'd like to jump in on this question. I have a
similar situation, but I want to have a table representing a to-many
relationship for entity1, which the user can populate by choosing any
number of entries from a entity2.
e.g. entity2 has 50 entries.
entity1 1st
Actually I did try it this way at one point, and it worked OK with one
small kink. It caused the +initialize method of the classes being
tested to get called, which for some classes (bearing in mind that
it's going through a list of EVERY class in the runtime), triggered
some warnings
Hi,
I am developing a Cocoa based application, which will access other
application's window and do some resize operations.
In Cocoa, is there any way to get other applications(includes
non-scriptable ) window references?
Thanks,
- Apparao.
___
Hello,
I sent this just before the Easter break but didn't receive a
reply. I thought I'd try again now that we're all back at work.
I have what, in WebObjects, we used to call a master-slave
display. I show a list of specific Products based on the
selected Product Model, hereafter
Am 27.03.2008 um 11:57 schrieb Gerriet M. Denkmann:
On 26 Mar 2008, at 22:56, Graham Cox wrote:
The undo manager will directly change the data in the text view
using an invocation or target/action - it doesn't go back through
changeFont: normally, which is really a high level method.
Am 27.03.2008 um 14:44 schrieb Nick Rogers:
are we allowed to do that in a cocoa proj.
if so how do we declare the class.
Is it like?
class MyClass
{
}
this is throwing error at the first line: parse error before
'MyClass' token
what headers do i need to include for a C++ class?
Make
On Thu, Mar 27, 2008 at 9:44 AM, Nick Rogers [EMAIL PROTECTED] wrote:
are we allowed to do that in a cocoa proj.
if so how do we declare the class.
Is it like?
class MyClass
{
}
this is throwing error at the first line: parse error before
'MyClass' token
To compile a file as
On Mar 27, 2008, at 7:05 AM, Nick Rogers wrote:
hi,
the semicolon is there. i've changed extension to .hh and .mm, still
the same error.
What file did you change to .mm, the header or the source file?
Remember, header files are not compiled (well, generally not), they
are included in
On Thu, Mar 27, 2008 at 10:14 AM, Mitchell Livingston [EMAIL PROTECTED]
wrote:
Hello,
When my program quits, I would like to fade out all the windows using
the animator. When I put this code in the applicationWillTerminate:
method, however, it appears to be called but doesn't animate. How
On Wed, Mar 26, 2008 at 4:48 PM, Sherm Pendley [EMAIL PROTECTED] wrote:
On Wed, Mar 26, 2008 at 7:04 PM, Lorenzo [EMAIL PROTECTED] wrote:
Hi Laurent,
I am going to debug and let you know. Right now I have found these lines.
Might they cause the trouble on Leopard PPC?
number =
On Wed, Mar 26, 2008 at 4:04 PM, Lorenzo [EMAIL PROTECTED] wrote:
Hi Laurent,
I am going to debug and let you know. Right now I have found these lines.
Might they cause the trouble on Leopard PPC?
No, but this line will cause problems when/if you build for 64-bit:
number =
On 27.03.2008, at 10:08, Uli Kusterer wrote:
But the glyph with number 0x20 is probably a completely different
width than the glyph corresponding to a space in other languages.
I meant in other *fonts*, not languages.
Cheers,
-- Uli Kusterer
The Witnesses of TeachText are everywhere...
Is what you are describing similar to the To Dos example at:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Adam
On Thu, Mar 27, 2008 at 5:33 AM, Ian Jackson [EMAIL PROTECTED] wrote:
If I may be so bold, I'd like to jump in on this question. I have a
similar situation, but I
OK, so where is that documented then? As I said, the CFBoolean
reference
says not a word about it:
http://developer.apple.com/documentation/CoreFoundation/Reference/CFBooleanRef/Reference/reference.html
By contrast, every other toll-free bridged CF class I can think of
explicitly
On Mar 27, 2008, at 10:59 AM, Sherm Pendley wrote:
CFBoolean *is* toll free bridged to NSNumber.
OK, so where is that documented then? As I said, the CFBoolean
reference
says not a word about it:
It's more subtle than that.
CFNumber is toll-free bridged with NSNumber.
toll-free
Hi,
NSScroller has a small view, by default two pixels high, just above
the scroller and below the NSTableHeaderView's corner view. How can I
get at this view? If you look at the XCode interface you can see they
have put an icon in this view (the one that splits the editor view)
and made it
[NSMapTable
mapTableWithKeyOptions:NSMapTableObjectPointerPersonality
valueOptions:NSMapTableStrongMemory]
(reading the doc for NSMap, I figured these are the right options)
However, when trying to fetch an object with a void* key to check
for its presence (using the C api as recommended)
On 27 Mar 2008, at 14:46, Jens Miltner wrote:
Am 27.03.2008 um 11:57 schrieb Gerriet M. Denkmann:
On 26 Mar 2008, at 22:56, Graham Cox wrote:
The undo manager will directly change the data in the text view
using an invocation or target/action - it doesn't go back through
changeFont:
I've got some NSToolbar code, which seems to have suddenly stopped
working on Leopard only.
- (void) setupToolbar
{
NSLog(@Setting up toolbar);
//[self removeObsoleteToolbarIdentifiers];
NSToolbar *toolbar = [[MMICleanerToolbar alloc]
I am using Xcode 2.5 and IB Version 2.5.6 (489).
I have a window with two NSTextFields. Both are static.
I've verified all my outlets and connections are valid.
Both outlet types are set to NSTextField in IB's inspector pallette.
However, when I generate the class files, no matter what I do,
On Thu, Mar 27, 2008 at 5:17 PM, Adam Gerson [EMAIL PROTECTED] wrote:
Ok, I understand. So I bind both the OutlineView and the
TreeController to a third object that keeps them both in sync to the
same SelectionIndexPath value.
No -- you bind the view to the controller and the controller to
On Mar 27, 2008, at 10:58 AM, Martin Redington wrote:
On Tiger, I can see the delegates -toolbarDefaultItemIdentifiers:
method get called, followed by the NSToolbarItem calls, after the
setToolbar: method.
On Leopard (10.5.2/9C31) [latest security update not installed yet],
the
I'm trying to use what I learned yesterday about Core Data in a System
Prefs pane. I created an Entity data model, and then tried to add an
NSTable and some buttons and wire them up the same way I'd seen the
Core Data Entity tool do it in IB. But, it didn't work.
So I tried using the Core
I'm trying to programatically show a NSSgetmentedCell menu, as if the
user has clicked on that segmented cell. For normal popup buttons you
can do this with 'performClick:', but that doesn't work for segmented
controls, because it will always just perform the click on the middle
cell. Is
Well, I tried some things at home but didn't get success. =(
I'm trying to do this: I have a controller with an array of accounts. And
these albums has a type associated to it. For example:
ACCOUNT 01 - BANK ACCOUNT
ACCOUNT 02 - BANK ACCOUNT
ACCOUNT 03 - LOAN ACCOUNT
ACCOUNT 04 - BANK ACCOUNT
I
On Mar 27, 2008, at 1:21 PM, Jesse Grosjean wrote:
I'm trying to programatically show a NSSgetmentedCell menu, as if
the user has clicked on that segmented cell. For normal popup
buttons you can do this with 'performClick:', but that doesn't work
for segmented controls, because it will
On Mar 27, 2008, at 10:29 AM, Clark Cox wrote:
On Wed, Mar 26, 2008 at 4:04 PM, Lorenzo [EMAIL PROTECTED] wrote:
Hi Laurent,
I am going to debug and let you know. Right now I have found these
lines.
Might they cause the trouble on Leopard PPC?
No, but this line will cause problems
I need to create a series of classes that implement the Singleton
design pattern. These classes have a lot of similar methods (I am
trying to create a series of DAOs see: http://en.wikipedia.org/wiki/Data_Access_Object)
.
I was thinking that it would be best to create a super class, and a
On Mar 27, 2008, at 9:50 AM, [EMAIL PROTECTED] wrote:
Hi,
NSScroller has a small view, by default two pixels high, just above
the scroller and below the NSTableHeaderView's corner view. How can I
get at this view? If you look at the XCode interface you can see they
have put an icon in this view
On Mar 26, 2008, at 9:12 AM, Milen Dzhumerov wrote:
Hi all,
I've been playing with CA today and encountered some weird problems.
Firstly, I tested setHidden: on an animator on a NSSegmentedView and
it worked fine - it gets faded in/out. Now, all the problems I
encountered happen in
On Thu, Mar 27, 2008 at 8:44 PM, Justin Giboney
[EMAIL PROTECTED] wrote:
How can I get a variable that is static to each subclass, but that is
declared in the super class?
In short, you can't. static in C means within the scope of the
source file. Split your subclasses off into their own
On Mar 26, 2008, at 2:54 PM, Duncan Champney wrote:
I need to find out the amount of total VRAM and available VRAM in
the current renderer before creating a large renderbuffer object, to
make sure I don't choke the system in doing it.
I know how to find the current renderer for a given
On 28/03/2008, at 3:23 AM, Ken Thomases wrote:
On Mar 26, 2008, at 11:43 PM, Graham Cox wrote:
I have a class that can contain different objects which all derive
from a class R. The container can accept instances of any subclass
of R.
Each subclass of R implements a CLASS method for a
On Mar 27, 2008, at 18:17 , Guillaume Laurent wrote:
On Mar 27, 2008, at 17:54 , A.M. wrote:
I think you would have an easier time with NSMutableDictionary and
[NSValue valueWithPointer:x] as the key.
Thanks, I'll try that too.
Indeed, that seem to be the simplest solution. I
On Mar 27, 2008, at 4:20 PM, Nathan Vander Wilt wrote:
So does that mean once I'm up at the Cocoa level, that
constant strings *are* guaranteed to have the same
pointer if their contents are the same? What is
unique and what is a module in this context?
They might be unique, they might not.
On Mar 27, 2008, at 4:26 PM, [EMAIL PROTECTED] wrote:
Thanks, but the corner view is the right side corner of the header
view, right? I was talking about the small view just below it, on top
of the vertical slider and part of the slider itself. It's a tiny view
of about 2 pixels height. I
On 27 Mar 2008, at 16:12, Gerriet M. Denkmann wrote:
Current I am using:
NSString *dummyString = [ NSString stringWithUTF8String: ];
NSTextView *dummyTextView = [ [ NSTextView alloc ] initWithFrame:
NSMakeRect(0,0,1e4,1e4) ];
[ dummyTextView setString: dummyString ];
[
I am implementing a custom NSView subclass (actually a simple subclass
of NSOpenGLView) that implements -keyDown: in order to respond to user
typing. Typically, this works great.
However, I have a few menu items which respond to atypical hotkeys (e.g.
one responds to space, another to
Yes, I meant scroller, not slider. Just had a glass of wine too much :-)
Actually I don't want to add an accessory view, I want to get rid of
the one that appears to be there by default. I have attached a
screenshot showing what I'm talking about. The yellow part is the
knob, drawn by filling the
On 27 Mar '08, at 6:10 PM, B.J. Buchalter wrote:
I am writing code that is linked to the 10.4u SDK. Does this mean
that I need to release the string?
Yes.
What happens if my app is run under 10.5?
Cocoa detects that your code was linked with the 10.4 SDK and follows
the old behavior.
I'm using CGContextReplacePathWithStrokedPath to get an outline of a
stroke, but it seems to ignore the current line cap, join and dash
settings (it does thankfully honour the line width though, so it's not
entirely useless). Can someone confirm that, or am I doing something
wrong?
On Mar 27, 2008, at 5:17 PM, [EMAIL PROTECTED] wrote:
Date: Thu, 27 Mar 2008 14:44:17 -0600
From: Justin Giboney [EMAIL PROTECTED]
Subject: Static in Subclasses
To: Cocoa Developers cocoa-dev@lists.apple.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain;
On Fri, Mar 28, 2008 at 1:17 AM, [EMAIL PROTECTED] wrote:
The white part above the slot is by
default black, but here I made it white by filling the rect returned
by calling [self rectForPart:NSScrollerNoParts].
[self rectForPart:NSScrollerNoPart] simply returns a rect in the
scroller
Never mind, I was doing something wrong - it does honour all of those
settings ;-) Apologies for doubting Quartz's engineers!
(BTW, an aside: since Quartz has the ability to do this sort of bezier
curve fitting, how about exposing more of it in the API? It would be
great to be able to
On Thu, Mar 27, 2008 at 9:16 PM, Jens Alfke [EMAIL PROTECTED] wrote:
The linker coalesces multiple identical string constants into a single
value in the data segment. However, you can still end up with multiple
copies if your code was linked in separate pieces and then joined
together.
On Mar 27, 2008, at 7:52 PM, John Stiles wrote:
I am implementing a custom NSView subclass (actually a simple
subclass of NSOpenGLView) that implements -keyDown: in order to
respond to user typing. Typically, this works great.
However, I have a few menu items which respond to atypical
On Mar 27, 2008, at 9:41 PM, Kyle Sluder wrote:
But it still makes sense to me that when I'm providing NSString
constants to be used as they are in the case of an NSError's userInfo
dictionary, for example, that pointer comparison is still valid. Of
course I wouldn't do it for places where I
With 10.5's new screen sharing ability is there away to embed screen
sharing into my app? I would like to pop up a window in my cocoa app
that allows a user to remote view or control the desktop of another
mac. I know I can launch the screen sharing app externally with vnc://
Thanks,
Adam
Wow, this sounds like a disaster.
Maybe in my -keyDown: call I can walk the menus in the menu bar and call
-performKeyEquivalent on all of them. It's probably not fast :| I was in
the process of writing code that stores the menu bar's key equivalents
in a hash table and checks the hash table
On 27 Mar '08, at 7:59 PM, Kyle Sluder wrote:
On Thu, Mar 27, 2008 at 10:55 PM, Jeff Laing [EMAIL PROTECTED]
wrote:
What confuses me is that people keep talking about @constant as
though
it were a 'string constant'
Its not, it's an Objective-C object that you can send messages to.
[snip]
58 matches
Mail list logo