Hi,
I would like to clarify about the usage of .f suffix when using floating
point numbers related to iPhone. I read .f is to tell the compiler about the
number is a float at start avoid any casting.
So when we use CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat
height) I usually see
Without a suffix, a literal with a decimal in it (123.0) will be treated as a
double-precision floating-point number. If you assign or pass that to a
single-precision variable or parameter, the compiler will (should) issue a
warning. Appending f tells the compiler you want the literal to be
On Oct 11, 2010, at 23:58, Tharindu Madushanka wrote:
I would like to clarify about the usage of .f suffix when using floating
point numbers related to iPhone. I read .f is to tell the compiler about the
number is a float at start avoid any casting.
So when we use CGRectMake(CGFloat x,
On 11 Oct 2010, at 15:23, Alex da Franca wrote:
I have set up a NSOutlineView with an NSTreecontroller as its datasource.
(did the binding in IB)So
You have your terminology jumbled here.
Let's assume we are talking bindings and not datasources.
There is so much terminology involved in
Hi All,
Need help , is there any command line for removing icon from Dock.
I don't want to do drag option and aslo do not want right click on
Remove from Dock.
Regards,
kiran.k
The information contained in this email and any attachments is confidential and
may be subject to copyright or
Thanks for the response. I am still having a little trouble. Here is what I
have done. I have set the keypaths and bindings of the NSTreeController and
NSOutlineView as below.
myListRoot is a NSMutableArray containing NSTreeNode objects. I point the
content array binding of the
Hi all.
I have a controller derived from UIViewController. It contains an
IBOutlet UITableView*, and declares and implements the necessary
delegate protocols (cellForRowAtIndexPath and numberOfRowsInSection).
The UITableView resides on a view by itself. I have the delegates
connected to the
I moved the code populating myListRoot to the -init method of MyDocument.m
and now it works. I was earlier populating it in -awakeFromNib.
I am so tried putting it back in -awakeFromNib followed by a call to
[mOutlineView reloadData] - but this did not work.
So I have my NSOutlineView showing
On Oct 11, 2010, at 7:30 PM, Shane wrote:
I have a minimum size set like 800x400, but max is 0x0, but it's also
unchecked. Something else I've noticed is that this happens in the IB
simulator as well, so I don't believe it's my code, but something in
IB.
And if you set the max values, does
On Oct 11, 2010, at 10:13 PM, Dave Keck wrote:
Don't do that. object_getInstanceVariable() and object_setInstanceVariable()
still assume the ivar is of an object pointer type.
As the documentation and prototypes stand, one would think that
object_getInstanceVariable() could be used like
On 12 Oct 2010, at 5:57 AM, kirankumar wrote:
Need help , is there any command line for removing icon from Dock.
I don't want to do drag option and aslo do not want right click on
Remove from Dock.
There isn't a specific API for manipulating the dock, but many people have
found that it
On Tue, 12 Oct 2010 10:49:04 -0700, Wim Lewis said:
There isn't a specific API for manipulating the dock, but many people
have found that it works to change the 'persistent-apps' and 'persistent-
others' keys in the com.apple.dock preferences domain and then send the
dock process a HUP signal (or
On Oct 12, 2010, at 02:10, Citizen wrote:
@property NSMutableArray * myArray;
I guess the Writability attributes could be extended to include:
readonlycollection
To generate these with synthisize:
- (unsigned) countOfMyArray;
- (id) objectInMyArrayAtIndex:(unsigned)theIndex;
-
This implies that you’re not manipulating your “myListRoot” property in a way
compliant with Key-Value Observing.
Just manipulating the instance variable will not post KVO notifications for the
property. You need to manipulate the property (for example, by working with
the proxy
On Oct 12, 2010, at 12:49 PM, Wim Lewis wrote:
On 12 Oct 2010, at 5:57 AM, kirankumar wrote:
Need help , is there any command line for removing icon from Dock.
I don't want to do drag option and aslo do not want right click on
Remove from Dock.
There isn't a specific API for
Wow, nobody has seen this problem? Lovely.
___
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
In the documentation for NSPersistentDocument's method -managedObjectModel it
says the following addition in a subclass can be used to improve efficiency if
all the documents share the same model.
- (id)managedObjectModel {
static id sharedModel = nil;
if (sharedModel == nil) {
On Tue, Oct 12, 2010 at 1:14 PM, Michael Link ml...@fractal.net wrote:
In the documentation for NSPersistentDocument's method -managedObjectModel it
says the following addition in a subclass can be used to improve efficiency
if all the documents share the same model.
-
On 12 Oct 2010, at 2:58 PM, G S wrote:
Wow, nobody has seen this problem? Lovely.
You expect a mailing list consisting of people reading in their spare time, and
writing out of charity, most of whom have been doing their paying jobs in the
few hours since you first posted, to drop everything
Am 12.10.2010 um 21:58 schrieb G S:
Wow, nobody has seen this problem? Lovely.
I only did when I did something wrong myself...
Show more code.
atze
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Tue, Oct 12, 2010 at 4:38 PM, Fritz Anderson fri...@manoverboard.org wrote:
On 12 Oct 2010, at 2:58 PM, G S wrote:
Wow, nobody has seen this problem? Lovely.
You expect a mailing list consisting of people reading in their spare time,
and writing out of charity, most of whom have been
You expect a mailing list consisting of people reading in their spare time,
and writing out of charity, most of whom have been doing their paying jobs in
the few hours since you first posted, to drop everything to respond? Lovelier
still.
Your assumptions are incorrect.
Thanks to everyone
On Oct 10, 2010, at 22:31:47, Quincey Morris wrote:
One way or another, you're going to have to come up with code to handle both
directions of frame change: model-to-view and view-to-model. One approach is
to use KVO observance (via [view bind:@'frame toObject:vp
withKeyPath:@frame
On Oct 12, 2010, at 14:58, Rick Mann wrote:
I'm still struggling to understand how this stuff works. I mean, given a pair
of KVO-compliant properties, I don't see why Cocoa can't handle it all for me
with a single call to -bind:….
Because that's not what Cocoa bindings are. You're expecting
On Oct 12, 2010, at 7:57 AM, kirankumar wrote:
Need help , is there any command line for removing icon from Dock.
I don't want to do drag option and aslo do not want right click on
Remove from Dock.
If you intend to do this programmatically, only do so with the consent of the
user. The
On Oct 12, 2010, at 16:15:17, Quincey Morris wrote:
My advice: Forget you ever started thinking about bindings. Forget about the
'bind...' method. Go back to the basics. You have objects two classes that
have a frame property that need to be kept in sync. Use
'addObserver:forKeyPath:...'
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month.
We will be meeting at the Orange County Public Library (El Toro) community
room, 24672 Raymond Way, Lake Forest, CA 92630
Please join us from 7pm to 9pm on Wednesday, 10/13.
This is an open mic night - bring your
On Tue, Oct 12, 2010 at 6:50 PM, Ken Thomases k...@codeweavers.com wrote:
If you intend to do this programmatically, only do so with the consent of the
user. The dock is the domain of the user. It is not appropriate for an
application to modify it on its own. Only the user is entitled to
Hello,
I was testing an app on a G4 10.5.8 machine that I had been developing under
10.6. I noticed a funny bug that I can't seem to figure out. I have a window,
an NSPanel with a toolbar, that serves as my preferences window. The appearance
and dismissal of a sheet seems to cause all of the
29 matches
Mail list logo