Ok, not a Cocoa question but I know one of the smart guys here will
like to guide me off list.
Question:
Is a static library properly designed if it requires headers from
another static library?
I think not.
___
Cocoa-dev mailing list (Cocoa-de
I want to develop a CocoaTouch app that talks to a web server without
doing 'web pages'. I.e. the app does http gets and posts driving php
(or other) scripts on the server to access some sql database.
Reason for this approach - to use coca table view to display data,
generally speaking to
sider using a third-party framework like ASI-HTTP-
Request or CocoaREST.
--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
On Fri, Sep 4, 2009 at 5:16 PM, David Blanton
wrote:
I want to develop a CocoaTouch app that talks to a web server
without doing 'web pa
Hey, I am not a peon!
... instead of wasting your efforts on a little mailing list
populated by peons who're merely trying to write applications.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
I need to create an app the is auto downloaded and installed from a
web site when the user clicks a web page button.
The app needs to be installed so that it always runs when the user
logs in.
The app needs to periodically (by user preference setting) connect to
a web server.
The app ne
installed.
And, if there is a particular location to be installed so that the app
runs at login are there not permission issues?
Thanks.
db
On Sep 27, 2009, at 10:38 AM, Jens Alfke wrote:
On Nov 14, 2009, at 9:21 AM, David Blanton wrote:
I need to create an app the is auto downloaded and
Do I understand correctly that using NSHTTPCookieStorage I can read
cookies received by browsers on Mac.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moder
Should my cocoa app write an entry to com.apple.loginitems.plist so it
launches at login or is there a better way?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
How does one get a views acceptFirstResponder method called without
having to click on the view?
If a class subclasses NSResponder so it can get events how does one
get an instance of this class in the responder chain?
-db
___
Cocoa-dev mailing l
NSArray *array = [[NSFileManager defaultManager]
directoryContentsAtPath:fullPath]];
Will array objects 0 thru n be in dictionary order? This seems to be
the case but not always. Should one sort array in an
ascending manner?
Every place I run my code I always see array in diction
I ask this here as I have seen questions on Crash Reports.
This is is Universal Binary ... why is there any PPC involved as it is
running on Intel
This is an iMac
Can anyone shed some light for me ? Or tell me where to go with this
type of issue ..
Thanks
db
Process: Conve
w days ago, I wonder ?
Thanks again, happy user now !
db
On Dec 14, 2009, at 1:14 PM, Mike Abdullah wrote:
On 14 Dec 2009, at 19:40, David Blanton wrote:
I ask this here as I have seen questions on Crash Reports.
This is is Universal Binary ... why is there any PPC involved as it
is
I searched the archive .. no hits.
The question:
How / Can I store a pointer to an obj-c object in a C++ class and then
send messages to the obj-c object from C++?
Somethng like:
class MyClass
{
public:
void* objcptr; // ptr to my obj-c object
void CallOBJC(void);
}
Thanks all !
I need Bing lessons from MS for my searches , I guess!
db
On Dec 17, 2009, at 12:24 PM, Kyle Sluder wrote:
On Thu, Dec 17, 2009 at 11:16 AM, David Blanton
wrote:
I searched the archive .. no hits.
You mustn't have searched the documentation. Or Google, for that
m
I have a main window and a few floating inspectors. I would like to
come back to the position the user left these upon relaunch. Do I have
to program this or is there some Cocoa or other construct that does
this for me?
db
___
Cocoa-dev mailing
Ok. I thought I had some automagic behaviour before but in doing a
sample I did not observe it. I had not named the window in IB. I'll
give that a go now.
Happy Healtcare!
db
On Dec 21, 2009, at 12:38 PM, Alexander Spohr wrote:
Am 21.12.2009 um 20:22 schrieb David Blanton:
I h
In my NSDocument app I have three Panels that will act as inspectors
for the document content.
In best Cocoa practices, should these Panels be owned by a window
controller?
db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Please disregard my question about Window Controllers.
db
On Dec 23, 2009, at 1:48 PM, David Blanton wrote:
I meant should each Panel have a Window Controller.
On Dec 23, 2009, at 1:45 PM, David Blanton wrote:
In my NSDocument app I have three Panels that will act as
inspectors for the
I meant should each Panel have a Window Controller.
On Dec 23, 2009, at 1:45 PM, David Blanton wrote:
In my NSDocument app I have three Panels that will act as inspectors
for the document content.
In best Cocoa practices, should these Panels be owned by a window
controller?
db
In a directory I have:
.DS_Store
._Filename
These name are in a array that is filtered using this predicate:
notBeginsWithDot = [NSPredicate predicateWithFormat:@"NOT SELF
BEGINSWITH %@", @"."];
childrenArray = [childrenArray
filteredArrayUsingPredicate:notBeginsWithDot];
childrenArra
Errata. Can't debug my own code. NSPredicate is working properly.
Happy New Year!
On Dec 28, 2009, at 2:09 PM, David Blanton wrote:
In a directory I have:
.DS_Store
._Filename
These name are in a array that is filtered using this predicate:
notBeginsWithDot = [NSPred
In a document based app I want to have some 'inspectors" that reflect
what i sgoing on in the document. These inspectors should float.
If I make NSPanel's for the inspector in MyDocument.xib then each
instance of a document gets its own set of inspectors.
I would like to have just one set
5 AM, Graham Cox wrote:
On 30/12/2009, at 4:23 PM, David Blanton wrote:
In a document based app I want to have some 'inspectors" that
reflect what i sgoing on in the document. These inspectors should
float.
If I make NSPanel's for the inspector in MyDocument.xib then each
insta
MyDocument is a subclass of NSDocument.
The docs say:
You can control whether the default accessory view (which contains a
pop-up menu allowing the user to choose what type to save) appears in
the Save panel by overriding shouldRunSavePanelWithAccessoryView. The
default accessory view is u
Duh ... It was workling and I didn't see it.
sorry for the bandwidth waste.
On Dec 30, 2009, at 6:55 PM, David Blanton wrote:
MyDocument is a subclass of NSDocument.
The docs say:
You can control whether the default accessory view (which contains a
pop-up menu allowing the user to c
Given an array of color data (a generic bitmap) what is the best /
fastest / recommended method to convert this to an NSImage?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the li
evening !
On Dec 31, 2009, at 3:54 PM, Henry McGilton (Boulevardier) wrote:
On Dec 31, 2009, at 2:26 PM, David Blanton wrote:
Given an array of color data (a generic bitmap) what is the best /
fastest / recommended method to convert this to an NSImage?
Load your data into memory, create
display.
Any comments on performance, please.
db
On Jan 1, 2010, at 11:08 AM, Mike Abdullah wrote:
On 31 Dec 2009, at 22:26, David Blanton wrote:
Given an array of color data (a generic bitmap) what is the best /
fastest / recommended method to convert this to an NSImage?
Strictly speaking
nvolve any CGBitmapContexts or CGImageRefs. Well, at least not in
any code you write :-)
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com
On 01.01.2010, at 00:21, David Blanton wrote:
Yeah, I was doing it with CGBitmapConte
Here is the code:
@interface MyDocumentView : NSView {
@public
NSBitmapImageRep* m_NSBitmapImageRep;
NSRect m_frameRect;
float m_sz;
BBitmap m_bitmap;
unsigned char*
GB. I
thought kCGImageAlphaNoneSkipFirst says don't make an alpha plane,
skip byte 1 and go to RED.
I am not sure how to specify this in the 'bitmapFormat' parameter.
On Jan 6, 2010, at 10:35 AM, David Duncan wrote:
On Jan 6, 2010, at 9:21 AM, David Blanton wrote:
)
bitsPerPixel:32];
On Jan 6, 2010, at 11:32 AM, David Duncan wrote:
On Jan 6, 2010, at 10:19 AM, David Blanton wrote:
Now, from David Duncan's comment.
My bitmap data does have alpha, i.e 4 samples per pixel ARGB. I
thought kCGImageAlphaNoneSkipFirst says don't make an alpha plane,
Answered my own question ... apologize for the noise!
On Jan 7, 2010, at 4:05 PM, David Blanton wrote:
Thanks to all.
I have my bitmap being drawn but it is upside down.
Do isFlipped play any role in this / how do I get it to draw right
side up without inverting my raw data?
For those
I have been using
CGContextRefcontext;
context = CGBitmapContextCreate (m_bitmap.m_array.m_array,
m_bitmap.m_array.m_pixelsx, m_bitmap.m_array.m_pixelsy, 8,
m_bitmap.m_array.m_pixelsx * 4, colorSpace,kCGImageAlphaNoneSkipFirst|
kCGBitmapByteOrder32Host);
CGImageRelease(m_BitmapI
If David Duncan would comment on performance issues using his
suggested approach:
CGColorSpaceRef colorSpace;
colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
CGDataProviderRef provider = CGDataProviderCreateWithData
(NULL,m_bitmap.m_array, 4*m_bitmap.m_pixel
, at 6:42 PM, Rob Keniger wrote:
On 08/01/2010, at 11:36 AM, David Blanton wrote:
The performance issue comes from the fact the user will be dragging
this bitmap around so I a regenerating m_bitmap.m_array constantly.
I'm not sure what your app does, but have you considered using a
Is there an 'easy' way to get NSScroller events in an NSDocument app?
I would like to know where the knob is.
-db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
04 PM, Graham Cox wrote:
On 08/01/2010, at 2:52 PM, David Blanton wrote:
Is there an 'easy' way to get NSScroller events in an NSDocument
app?
I would like to know where the knob is.
The knob's position is just the -floatValue (or -intValue) of the
scroller control.
Wh
f the user scrolls I want to tell my model how much was scrolled
so it can regenerate a bitmap for display.
3. If the window size changes apply a factor to the content view to
achieve 1 above.
-db
On Jan 7, 2010, at 9:33 PM, Graham Cox wrote:
On 08/01/2010, at 3:21 PM, David Blanton
Let me cogitate on your superb answer for a bit. I'll be back. Thanks.
On Jan 7, 2010, at 10:14 PM, Graham Cox wrote:
On 08/01/2010, at 3:58 PM, David Blanton wrote:
If a scroll view's content view is larger than the scroll view then
the scroll view generates scrollers - corr
When the content view of a window has setHidden:YES called on it the
result is a Title Bar, Size Control and a "body" (for lack of a better
term). Is it possible to get rid of this "body" leaving just the
Title Bar and Size Control. The effect would be that when dragging
the Title Bar the
How I don't know but View / Smart Groups / Error & Warnings wasn't
on. But still, using Xcode 3.1.2, why do my previous XC 2.1.4
projects not show
<>
but only this
<>
On Jan 8, 2010, at 12:12 PM, David Blanton wrote:
OK. I guess the real question is this:
Ho
Does NSBackingStoreBuffered guarantee there will be no flicker when
drawing?
That is, I won't see the content view background drawn, then myview
background drawn, then myview whatever I draw into bounds rect ...
which would be "flicker, flicker" if I am drawing all through resizing
the wi
I am just trying to find the best way to do rapid drawing with no
flicker. I don't see an override on background drawing so I was
wanting to eliminate the backgroud of the content view.
On Jan 8, 2010, at 1:30 PM, Kyle Sluder wrote:
On Fri, Jan 8, 2010 at 12:01 PM, David Blanton
event loop). It is one of the joys of
programming on the Mac (compared to Windows).
Paul Sanders
- Original Message -----
From: "David Blanton"
To: "cocoa-dev List"
Sent: Friday, January 08, 2010 8:38 PM
Subject: Flicker Free Drawing
Does NSBackingStoreBuffered guarantee
I guess I just choose Buffered in Window Attributes in IB.
On Jan 8, 2010, at 1:56 PM, David Blanton wrote:
Great and thanks! Now, if my app is a Cocoa document-based
application where do I implement
initWithContentRect:styleMask:backing:defer:
-db
On Jan 8, 2010, at 1:48 PM, Paul Sanders
Thanks for references and tips. I think I will be able to achieve the
results I am looking for from all who have commented!
- db
On Jan 8, 2010, at 4:39 PM, Alastair Houghton wrote:
On 8 Jan 2010, at 20:46, David Blanton wrote:
I am just trying to find the best way to do rapid drawing with
I am seeing some strange behavior.
I set the knob position of the horz and vert scrollers as follows:
- (void)centerScrollers {
[m_hScroller setDoubleValue:0.5];
[m_vScroller setDoubleValue:0.5];
}
Then when I move either knob with the mouse the other knob move
This appeared automagically in my .xib. Can anyone tell me what this
is and how it got there:
-db
2010-01-14 11:50:44.021 Customize It[9646:813] Unknown class
IBLibraryObjectTemplate in Interface Builder file.
___
Cocoa-dev mailing list (Cocoa-de
When my document based app starts up the awakeFromNib method in my
NSDocument subclass is called.
When I choose Open a new NSDocument is instanced but this does not
call awakeFromNib.
Am I missing a setting?
I need awakeFromNib to be called for any instance on my NSDocument
sublass.
I
any one of many init methods are implemented
and awakeFromNib is implemented these are called.
So, I do not understand what you have said.
- db
On Jan 14, 2010, at 1:53 PM, Matt Neuburg wrote:
On Thu, 14 Jan 2010 12:57:57 -0700, David Blanton >
said:
When my document based app starts up
Only one nib (xib) that was created (MyDocument.xib) when the project
was created form the document based app template.
I am looking at the Open as Files Owner ... hmm not sure.
Thanks.
-db
On Jan 14, 2010, at 1:27 PM, Quincey Morris wrote:
On Jan 14, 2010, at 11:57, David Blanton wrote
ch objects (if any) are library object templates.
Kevin
On 14 Jan 2010, at 12:51, David Blanton wrote:
This appeared automagically in my .xib. Can anyone tell me what
this is and how it got there:
-db
2010-01-14 11:50:44.021 Customize It[9646:813] Unknown class
IBLibraryObjectTem
MyDocument--and weirdness ensues.
On 2010-01-14 16:19, David Blanton wrote:
Thank you for commenting but now I am really confused. When a
project is created from the document based template it contains
files MyDocument.h and MyDocument.m which define the interface and
implementation fo
No. This is a vanilla document based app with two nibs, MainMenu and
MyDocument as created by the project template.
The document window is in MyDocument.xib.
On Jan 14, 2010, at 2:41 PM, Jeffrey Oleander wrote:
On Thu, 2010/01/14, David Blanton wrote:
From: David Blanton
Subject: Re
2010, at 22:51, David Blanton wrote:
No. This is a vanilla document based app with two nibs, MainMenu
and MyDocument as created by the project template.
The document window is in MyDocument.xib.
What is specified as the class of file's owner in the nib/xib file:
(a subclass of) NSDoc
A custom view sub-classed from NSView when embedded in an NSScrollView
has its drawRect method called when the NSScrollers are manipulated by
the user.
Is there a method further up the (NSResponder?) chain where scoll
activity can be overridden? And if so, is there an example or sample
to
trackKnob];
// do something with _curValue
}
do something no that mouse is released
}
Has anyone done something like this?
-db
On Jan 15, 2010, at 9:42 AM, David Blanton wrote:
A custom view sub-classed from NSView when embedded in an
NSScrollView has its drawRect method called when
Never mind. Figured it all out. If anyone is interested ping me off-
list.
-db
___
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
ailing list archives also tend
to strip out email addresses, making it hard for people who encounter
your thread to contact you about the solution. Please share your
solution with the list, it's silently appreciated by many a web
searcher. :)
--Kyle Sluder
On Fri, Jan 15, 2010 at 10:22
, 2010, at 3:47 PM, Graham Cox wrote:
On 16/01/2010, at 9:19 AM, David Blanton wrote:
- (void)drawRect:(NSRect)rect {
[super drawRect:rect];
...
if(m_scrolling)
{
NSLog(@"drawRect scrolling");
flo
I have embeded two views in a split view then embeded that result with
another view in a split view to get a resulting vert splitter and horz
splitter.
Now I would like to Uembed an cannot no matter what selections I do
get Uembed to enable in the IB Layout Menu.
Any suggestions ? Please
I posted this with two images from the debugger but it is awaiting
moderator screening.
In a view IBAction I instance a C++ class. As soon as the class is
instanced, self in the variables window, goes to 0x0 !
This worked fine until I embedded the view win a split view!
Now moving the ins
Good tips Ken ... I am on it!
On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote:
On Jan 18, 2010, at 9:17 PM, David Blanton wrote:
In a view IBAction I instance a C++ class. As soon as the class is
instanced, self in the variables window, goes to 0x0 !
Try logging the value of self, rather
Ok. The C++ constructor does nothing more than assign a member
variable by calling a function.
And, the NSLog of self breaks as well!
Hmmm !
On Jan 18, 2010, at 8:32 PM, David Blanton wrote:
Good tips Ken ... I am on it!
On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote:
On Jan 18, 2010
Oh I forgot to do -fstack-protector-all where do I set that?
On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote:
On Jan 18, 2010, at 9:17 PM, David Blanton wrote:
In a view IBAction I instance a C++ class. As soon as the class is
instanced, self in the variables window, goes to 0x0 !
Try
So I set stack-protector-all as "other C++ flags" and got
_stack_chk_fail
So this means the C++ constructor is corupting the stack?
-db
On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote:
On Jan 18, 2010, at 9:17 PM, David Blanton wrote:
In a view IBAction I instance a C++ class.
Yes, the C++ Class is in a BSD Static library.
I am checking the compiler options etc now.
I'll let you know the result.
-db
On Jan 18, 2010, at 10:09 PM, Ken Thomases wrote:
On Jan 18, 2010, at 9:50 PM, David Blanton wrote:
So I set stack-protector-all as "other C++ flag
I have two views that need to occupy the same space and have their
visibility toggled via an action.
I first overlaid one on the other setting it hidden, all done in IB.
Then in code set one hidden the other visible at which time it dawned
on me that one view was contained in the other and t
NSTabView w/o tabs ... yeah that's the ticket!
Thanks.
-db
On Jan 22, 2010, at 4:45 PM, Scott Anguish wrote:
NSTabView with tabs that aren’t visible?
On Jan 22, 2010, at 4:57 PM, David Blanton wrote:
I have two views that need to occupy the same space and have their
visibility to
I would like to display an image and descriptive text is some sort of
popup list such as an NSComboBox.
Can the NSComboBoxCell draw method be overridden to display an image
along with text?
Or, what is the best way to accomplish a pop up list of images and
descriptive text?
-db
I have a fixed size NSTabView that displays 4 NSTabViewITems very
nicely.
It is possible that the application may want to add more NSTabViewItems.
Is there a flag to set (somewhere) so that added items will not be
truncated to the view but display >> like Safari indicating more items
and t
Class A is a subclass of NSView
Class B is a subclass of Class A
Class A and Class B are in a NIB.
Class A as an Object - the blue cube
Class B as a view in a window.
When the program runs:
Class A's init method is called
Class B's awakeFromNib is called
Class A's awakeFromNib is called
NOTE
On Jan 25, 2010, at 8:51 PM, Kyle Sluder wrote:
On Mon, Jan 25, 2010 at 7:43 PM, David Blanton
wrote:
Class A is a subclass of NSView
Class B is a subclass of Class A
Class A and Class B are in a NIB.
Classes don't live in nibs. You mean an object of class A and an
object of class B
pointer to the CocoaNibs.html
-db
On Jan 25, 2010, at 8:51 PM, Kyle Sluder wrote:
On Mon, Jan 25, 2010 at 7:43 PM, David Blanton
wrote:
Class A is a subclass of NSView
Class B is a subclass of Class A
Class A and Class B are in a NIB.
Classes don't live in nibs. You mean an object of
Ok, so there is no flag to set. So how would one deal with the
situation I described?
I want to see all the tab items ... are there multiple rows?
Any help or suggestions, please.
-db
On Jan 25, 2010, at 11:46 PM, Scott Anguish wrote:
On Jan 25, 2010, at 10:34 PM, David Blanton wrote:
I
I cannot discern a method that tracks the knob on and NSSlider.
Is it possible to track an NSSlider?
-db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderator
Continuous Check Box did the trick .. Thanks!
-db
On Jan 28, 2010, at 10:11 AM, Jens Alfke wrote:
On Jan 28, 2010, at 9:05 AM, David Blanton wrote:
I cannot discern a method that tracks the knob on and NSSlider.
Check the "continuous" checkbox in IB (or set the object propert
I run my app on my Intel MacBook Pro.
Get Info shows it as Universal.
I have a customer who must turn Rosetta on else the app crashes.
Is there any rhyme or reason to this?
-db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
nvertitmac 0x2ab9 0x1000 + 6841
On Feb 2, 2010, at 8:48 PM, Nick Zitzmann wrote:
On Feb 2, 2010, at 8:07 PM, David Blanton wrote:
I run my app on my Intel MacBook Pro.
Get Info shows it as Universal.
I have a customer who must turn Rosetta on else the app crashes.
Is there any rhyme
Feb 2, 2010, at 9:20 PM, Nick Zitzmann wrote:
On Feb 2, 2010, at 9:11 PM, David Blanton wrote:
Yes, I have the crash log that is generated when launching with
Rosetta off which I include here for list perusal. Interestingly, I
just got off the phone with an Apple Consulting Engineer who let me
, David Blanton wrote:
I run my app on my Intel MacBook Pro.
Get Info shows it as Universal.
I have a customer who must turn Rosetta on else the app crashes.
Is there any rhyme or reason to this?
Assuming you meant to put an "or" between the "on" and "else",
of the 27"
iMac since Apple has done two firmware update, held shipment for three
weeks at on time, and I only get this error on three customer's 27"
iMacs.
-db
On Feb 2, 2010, at 10:52 PM, Jens Alfke wrote:
On Feb 2, 2010, at 8:11 PM, David Blanton wrot
No. They are logged n a user A, changing the name to user B is
meaningless until they log out / login in.
My guess anyway.
On Feb 4, 2010, at 9:26 AM, Joar Wingfors wrote:
On 4 feb 2010, at 00.27, Laurent Daudelin wrote:
I'm using NSFullUserName() to get the user name of the currently
I get this warning, but I never call these methods:
2010-02-19 09:56:29.975 Customize It[338:10b] *** -[NSComboBoxCell
selectItemWithObjectValue:] should not be called when usesDataSource
is set to YES
2010-02-19 09:56:29.976 Customize It[338:10b] *** -[NSComboBoxCell
indexOfItemWithObject
AM, David Blanton
wrote:
I get this warning, but I never call these methods:
2010-02-19 09:56:29.975 Customize It[338:10b] *** -[NSComboBoxCell
selectItemWithObjectValue:] should not be called when
usesDataSource is set
to YES
I do call
[self selectItemWithObjectValue:@"N
In an NSDocument app where should or how should the Application
Preferences menu item be connected?
-db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderato
target and action.
Am I doing too much? Is there a 'less code' approach?
-db
On Feb 24, 2010, at 1:46 PM, Paul Bruneau wrote:
On Feb 24, 2010, at 3:28 PM, David Blanton wrote:
In an NSDocument app where should or how should the Application
Preferences menu item be connected?
Th
, at 2:39 PM, Quincey Morris wrote:
On Feb 24, 2010, at 12:58, David Blanton wrote:
What I was really getting at is how to set the target / action for
when the item is selected. Here is what I did, so if this is way
off base please let me know.
I sub-classed NSMenuItem and set the
I have an ivar tyoed as id as
id m_view
at some point m_view gets set to a particular view
I would like to send messages to m_view as [m_view selector] but since
it is not typed I get the message
'struct objc_object' has no member named 'selector'
How does one work with / around this
s for not being precise earlier !
On Feb 24, 2010, at 8:31 PM, David Blanton wrote:
I have an ivar tyoed as id as
id m_view
at some point m_view gets set to a particular view
I would like to send messages to m_view as [m_view selector] but
since it is not typed I get the message
Yeah! 2) looks like the answer ... I am trying now ... Thanks!
-db
On Feb 24, 2010, at 8:52 PM, Andrew Farmer wrote:
On 24 Feb 2010, at 19:43, David Blanton wrote:
I misspoke earlier.
What I want to do is access an an ivar in m_view such as m_cpp wher
m_cpp is an instance of a C
changeColor is listed as a delegate method for NSColorPanel
Here is my code
- (IBAction)color:(id)sender {
NSColorPanel* cp;
cp = [NSColorPanel sharedColorPanel];
[cp setDelegate:self];
[cp setContinuous:YES];
NSLog(@"%@",[cp delegate]);
[NSApp ru
wrote:
On 25/02/2010, at 5:44 PM, David Blanton wrote:
Am I missing something obvious?
Generally apps don't run the color panel modally. I believe there is
a way to do it, I've seen it in some apps with an added OK/Cancel
button, though it seems rare and weird. It may be that
ndow, etc.
--Graham
On 25/02/2010, at 6:21 PM, David Blanton wrote:
Well, no.
I have run it
modal from a modal panel
non-modal from a modal panel
non-modal from a non-modal panel
changeColor is never called.
I am stumped and going to pour a glass of wine and play
[window deviceDescription] is to return an NSDictionary of device
description data
NSDeviceResolution key is to return an NSString representing an NSSIze
Calling NSSizeFromString on this returned string causes and exception
-[NSConcreteValue getCString:maxLength:encoding:]: unrecognized
sel
ate methods of NSWindow, etc.
--Graham
On 25/02/2010, at 6:21 PM, David Blanton wrote:
Well, no.
I have run it
modal from a modal panel
non-modal from a modal panel
non-modal from a non-modal panel
changeColor is never called.
I am stumped and going to pour a
I did the below ... duh, all good now!
On Feb 25, 2010, at 2:50 PM, Greg Parker wrote:
NSValue* v = [dd valueForKey:NSDeviceResolution];
NSSize sz = [v sizeValue];
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
What is the best practice for connecting menu items to their actions?
Is it IB, is programatically?
If IB what is the process?
- db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to th
-Steven's 2¢
On Sat, Feb 27, 2010 at 2:40 PM, David Blanton
wrote:
What is the best practice for connecting menu items to their actions?
Is it IB, is programatically?
If IB what is the process?
- db
___
Cocoa-dev mailing list (Cocoa-dev@
1 - 100 of 253 matches
Mail list logo