On Jun 11, 2010, at 8:32 PM, ico wrote:
On Sat, Jun 5, 2010 at 1:19 AM, jeremy jf_li...@mac.com wrote:
Would you provide some additional information:
1) Is the IB designed custom view in MainWindow.xib or is it in its own nib
file?
2) Did you create a custom view controller class to
On Jun 1, 2010, at 9:18 PM, Hank Heijink (Mailinglists) wrote:
On Jun 1, 2010, at 5:09 PM, Fritz Anderson wrote:
On 31 May 2010, at 11:58 PM, Development wrote:
I have a Scroll view that contains a master view. This master view adds
page sized views of image data, specifically PDF data.
On May 16, 2010, at 4:06 AM, Gustavo Pizano wrote:
Hello all.
I was taking a look into localization, I check the docs at apple, and my
Cocoa book, and I did as they said.. First I right clicked a nib file, and
made it localizable, then add the French lang from the list. (this was a
On May 15, 2010, at 10:56 AM, Sai wrote:
Hi All,
I am new to cocoa development. Suppose I have an iPhone application follow
the MVC design pattern.
The Model is presented by an custom object. And I have declared an instance
of the Model Object as a IBOutlet
in my Controller class.
One
On May 9, 2010, at 7:56 PM, Scott Anguish wrote:
This has been, or is being updated.
The suggested pattern is now
- (id)init
{
self = [super init];
if (self)
{
}
return self;
}
All our documentation has been updated to reflect this (even if it hasn’t
necessarily made
On Apr 26, 2010, at 8:15 AM, ML wrote:
How about a good book that explains what IB does, how to set delegates, first
responders, connect things up, etc
Here is an example of making a (simple) iPhone project all in code:
http://www.trilithon.com/download/CodeOnly.zip
There is a
On Apr 26, 2010, at 8:49 AM, David Rowland wrote:
On Apr 26, 2010, at 8:15 AM, ML wrote:
How about a good book that explains what IB does, how to set delegates,
first responders, connect things up, etc
I think that misunderstanding prevents me from using IB as much as I really
On Apr 19, 2010, at 1:21 PM, Philip Mobley wrote:
I am fairly new to Cocoa, and so I have 2 questions I would appreciate some
feedback. For a beginner, Cocoa suffers from the too much info problem and
its often difficult to find the answers to seemly simple questions. I have
had better
On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote:
I have to confess that I haven't yet learned UIKit. The bits of iPhone
development I've done so far have used networking and crypto APIs, and
CoreAnimation, but hardly any of the UIKit classes.
What would be the best book for me to learn
On Mar 9, 2010, at 9:25 PM, Sasikumar JP wrote:
Hi,
I am new to the Cocoa Programming. I am working on my first iPhone app. I
want to present the data in tableview, there user can click the url or user
name in the text.
I have customized the table view cell and displayed the text in
On Mar 5, 2010, at 10:07 AM, Gustavo Pizano wrote:
Hello Duncan.
I want to draw the inside of a UIButton with a gradient, so I just place in
IB a Cusotm Buttom, and in the drawRect I taking its bounds, and from there
Im getting the midX,minX etc.
So let me see if I get this straight,
On Mar 1, 2010, at 4:40 AM, Joanna Carter wrote:
I have discovered that adding a private ivar of type id to a class makes it
visible as an IBOutlet in Interface Builder.
@interface MyController : NSObject
{
@private
id anIvar;
...
}
@end
Is this a known bug, or expected
On Feb 19, 2010, at 6:17 AM, Tom Davie wrote:
Hi,
I'm having some problems with an open panel. I display the panel, allow the
user to chose and image, and then do some work, which involves showing a
sheet while the work is done. This all works wonderfully, until the user
clicks the set
On Feb 16, 2010, at 6:31 PM, James Trankelson wrote:
Hi,
I'm trying to figure out the general feasibility of the following task.
Imagine I have two separate applications, running side by side. Is it
possible to take all of the mouse/keyboard inputs that are going into
one of these
On Feb 13, 2010, at 11:39 AM, Laurent Daudelin wrote:
Is there anyway to have smaller segmented controls besides the large ones
available in IB? I'm talking the size of the one in Settings-General for
Location Services. Any idea?
Using Interface Builder's Attributes Inspector, set the
On Feb 13, 2010, at 7:57 PM, Trygve Inda wrote:
Trygve Inda (cocoa...@xericdesign.com) on 2010-02-14 22:13 said:
In code based largely on Apple's SourceView, I am drawing by IconAndTextCell
and getting a crash...
Anyone seen this and know what it might be?
I have added code to draw a
On Feb 12, 2010, at 1:31 PM, Donald Klett wrote:
Once again, I am not understanding some aspect of Objective C and/or Cocoa.
I created a simple class that contains two NSTextField objects. I used IB to
connect the Controller object with the two text fields. The code follows.
This
On Feb 12, 2010, at 8:34 PM, Laurent Daudelin wrote:
I'm not sure what I'm missing but I know it must be big. I started the design
of a TabBar-style app and now, I want one of the view to be a navigation one.
I did drag a UINavigationController to my xib, put it inside the TabBarView
and
On Feb 10, 2010, at 12:23 PM, James Walker wrote:
I think at times I've written things like [[NSMutableArray alloc] init] with
no apparent ill effects, but now I notice that the docs for NSMutableArray
and NSArray don't say that there is an init method. The NSObject docs say
that an init
On Feb 7, 2010, at 4:33 PM, Development wrote:
I am adding an image to a UIImageView and every time that I try to I get this
error: Error: invalid distance too far back\n
and only about the top 10 lines of the image appear in the view, the rest is
black even though the image size is
. . .Otherwise it
might be a
corrupted image . . .
Cheers,
. . . . . . . .Henry
On Feb 7, 2010, at 6:16 PM, Henry McGilton (Boulevardier) wrote:
On Feb 7, 2010, at 4:33 PM, Development wrote:
I am adding an image to a UIImageView and every time that I try to I get
On Feb 6, 2010, at 9:57 AM, Matthew Weinstein wrote:
It's associated with an NSDocument...
On Feb 6, 2010, at 9:41 AM, edole...@gmail.com wrote:
is it assoc with a view controller class?
--
Sent from the Verizon network using Mobile Email
--Original Message--
From:
On Feb 6, 2010, at 11:28 AM, Paul Sanders wrote:
Perhaps you could use separate images and convert them to
monochrome, saving them as 1 bpp bitmaps (aka masks). Memory
should not then be an issue.
Paul Sanders.
- Original Message -
From: Andrew Farmer andf...@gmail.com
To:
, or,
if images are
actually required for whatever reason, they could additionally be manufactured
on the fly
by drawing into Core Graphics Image Contexts . . .
Maybe clarify the problem specification a little . . .
Cheers,
. . . . . . . .Henry
On Feb 6, 2010, at 2:44 PM, Henry
On Feb 6, 2010, at 6:45 PM, Kyle Sluder wrote:
On Sat, Feb 6, 2010 at 3:45 PM, Development developm...@fornextsoft.com
wrote:
I really like the sound of this solution. I've never worked with CGPaths, is
that anything at all like NSBezierPath?
because it seems like this might be the way to
On Feb 1, 2010, at 2:11 PM, Eric Gorr wrote:
Strange, I just replied to Richard saying that my selector is not performed
until after the mouse button goes up. I can hold the mouse button down for
several seconds and not see the selector performed.
Of course, this may actually be due to
On Jan 13, 2010, at 6:22 PM, William Squires wrote:
I have a UITableView that's part of a Navigation-based Application. There's
one .xib, a DrinkDetailViewController class (.m .h files) and an
AddDrinkViewController class which inherits from DrinkDetailViewController.
Both share the same
On Jan 7, 2010, at 8:53 AM, Eric E. Dolecki wrote:
I don't care about the city, just that the zip code will work. On an iPhone
testing against an array of 42,305 values... could that be pretty quick?
Seems like a large set to go through looking. I'm sending the value to a
webservice to
On Jan 6, 2010, at 9:21 AM, David Blanton wrote:
Here is the code:
@interface MyDocumentView : NSView {
@public
NSBitmapImageRep* m_NSBitmapImageRep;
NSRect m_frameRect;
float m_sz;
BBitmap
On Jan 5, 2010, at 1:43 PM, mmalc Crawford wrote:
On Jan 5, 2010, at 1:35 pm, Kyle Sluder wrote:
On Tue, Jan 5, 2010 at 1:23 PM, mmalc Crawford mmalc_li...@me.com wrote:
An NSDate object represent a single point in time -- you can think of it
basically as a wrapper for an NSTimeInterval
On Jan 4, 2010, at 11:17 AM, Nick Zitzmann wrote:
On Jan 4, 2010, at 11:35 AM, Eric E. Dolecki wrote:
I am creating an iPhone view that has 12 months of views in it starting with
January.
Don't make assumptions about calendars unless you are absolutely sure you can
get away with
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 an NSBitmapImageRep from that pile of
data, then make an NSImage from the
On Dec 30, 2009, at 2:53 AM, slasktrattena...@gmail.com wrote:
Simple. Start a timer on mouse down, invalidate it on mouse up.
Something like this (written in mail):
NSTimer *timer;
-(void)mouseDown:(NSEvent*)ev
{
timer=[[[NSTimer alloc] blah ...] retain];
}
On Dec 30, 2009, at 11:43 AM, Gustavo Pizano wrote:
Henry hi.
You mean with the NEEvent method that returns the timestamp?... I was trying
that also, and as far as I understood its the timestamp between the App
startup and the event... so I dunno how this might help me... maybe I
On Dec 28, 2009, at 3:27 PM, Graham Cox wrote:
On 29/12/2009, at 4:00 AM, Joar Wingfors wrote:
NSInteger i = 0;
while ([[self trackingAreas] count]==0) {
[self removeTrackingArea:[[self trackingAreas]
objectAtIndex:i]];
i++;
}
That loop seems
I bashed into a problem with NSKeyedArchiver trying to encode
NSValue objects.
I am using NSValue to wrap up CGPoint and CGSize structures, then
doing an encodeObject: forKey: to encode the NSValue.
I get this message:
[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver
On Dec 23, 2009, at 7:41 PM, Richard Somers wrote:
In my application when I do the following something strange happens.
Add a managed object to the store, save the file, then save the file as
another name.
Upon saving the file with another name, core data will create and then
destroy
On Dec 22, 2009, at 9:33 AM, Richard Somers wrote:
How do you inspect or print the description of a Core Graphics object?
There's no analogue to the -description method of Objective-C frameworks.
Many of the specific Core Graphics types like CGColor and CGColorSpace and
CGImage and CGFont
On Dec 21, 2009, at 8:02 PM, Development wrote:
Then I don't understand how to do this.
Do I create the context at this larger size? because that's what I did.
Do I drawInRect the image at it's original size? Because that's what I did.
As near as I can tell, no matter what I do, the
On Dec 14, 2009, at 12:45 PM, Eric E. Dolecki wrote:
I was receiving malloc double free errors when a view removed itself, so all
of the releases I was doing in the view I commented out, the view killing
itself after it animates from visual view:
- (void) killMe:(NSString *)animationID
On Dec 10, 2009, at 4:51 PM, Joe Programmer wrote:
I made a similar post to the Xcode list originally, but it was suggested that
I redirect it to the Cocoa list. Here it is:
I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the
debug and the release builds launch
On Dec 11, 2009, at 10:23 AM, Paxton Sanders wrote:
Sorry if this is a bit too basic, but...
I want to know when the user exits edit fields, so I can check values and
provide immediate feedback. I'm using
- (void)controlTextDidEndEditing:(NSNotification *)aNotification
and it works.
On Dec 10, 2009, at 6:24 AM, Eric E. Dolecki wrote:
If I create a UILabel in IB in a view I place 1/2 of the label out of the
view at the top, I can't seem to drag the view window around by the title
bar where the label is. I know that having the control 1/2 out of the view
isn't normal,
On Dec 10, 2009, at 8:42 AM, Manfred Schwind wrote:
Be careful, though: Some MacOS versions have a bug where .strings files had
to be UTF16 to actually work. I don't think Apple has fixed that yet.
Do you have more specific information about that?
I consequently always used UTF-8 for all
On Dec 9, 2009, at 5:58 PM, Eric E. Dolecki wrote:
Is there a way to define the touchesBegan in an added sub view to
be constricted to a certain area and not allObjects? Thus leaving a hole
to allow touches to be fired on the view below?
If I interpret your question correctly, you want the
On Nov 28, 2009, at 2:50 PM, Quincey Morris wrote:
On Nov 27, 2009, at 14:58, Shane wrote:
I think I'm understanding this in part ...
// *.h
NSMutableData *pointData;
NSPointArray *points;
// *.m
pointData = [[NSMutableData alloc] init];
...
NSPoint
On Nov 26, 2009, at 4:01 PM, Sandro Noël wrote:
Thank you Alastair.
Well it's pretty complicated, This is my third application, the first being
Bonjour Mounter, the Second RDP Launcher.
Others were created but never released. I've always used the OS's controls
but now I find myself
On Nov 23, 2009, at 10:33 AM, PCWiz wrote:
What I had in mind was a window vanishing effect for when the window is
closed (for example a fade out is easy to do with [[window animator]
setAlphaValue:0.0];) but something slightly more complex, such as the private
suckEffect transition that
I wonder if anybody else has seen this particular end case.
I googled for anything remotely like this problem and found nothing really
relevant, and CocoBuilder is down right now.
In a group learning situation last week, one of the people stumbled over a
problem defining and then trying to
On Nov 20, 2009, at 12:22 PM, Jens Alfke wrote:
On Nov 20, 2009, at 12:09 PM, Michael de Haan wrote:
Does the, in your opinion, optional addition pretty much replace
categories as a whole, or is there still a role for them?
It replaces informal protocols. There are many other uses for
On Oct 23, 2009, at 10:29 AM, Bob Barnes wrote:
Hi all,
I posted this a yesterday, but it never appeared on the list and
it's not showing up in the web archive so I thought I'd retry.
I have a UITableView that contains some cells with UITextField's
embedded in them. When I touch the
On Oct 7, 2009, at 4:35 PM, Luke the Hiesterman wrote:
If you subclass UITabBar you can get the touches yourself and
respond appropriately.
Luke
You can also set a delegate for the Tab Bar Controller and implement the
- (void)tabBarController:(UITabBarController *)tabBarController
On Oct 7, 2009, at 8:39 PM, John Baldwin wrote:
Perhaps that's what's tripping me up: bogus expectations. Here's
what I have set up.
In the xib file, the File's Owner delegate is set to an
AppController instance (an object in the xib).
The AppController has a +initialize method which
On Sep 15, 2009, at 5:20 AM, Graham Cox wrote:
On 15/09/2009, at 10:07 PM, Mark Bateman wrote:
if I have a value of x= 10,000 y = 211.2 and an envelope
of 9500, 200: 13000, 211: 14000,214: 9500,214 can i use
NS range to check if the original coordinates are inside the
On Sep 14, 2009, at 9:11 AM, jon wrote:
I thought i had read that NSNumber knew how to code itself in an
NSArray... is this not the case? or is this code below just set up
all wrong? and what would the proper way be to set this up?
bookMarkNode's coders are below, this object has the
On Sep 13, 2009, at 4:17 PM, Kyle Sluder wrote:
We already know the cause and the solution: MyViewController.h
imports MySubview.h, and MySubview.h imports MyViewController.h. The
standard C header preprocessor trick does not help in this
situation, and neither does import.
The solution
On Aug 27, 2009, at 8:13 PM, Seth Willits wrote:
drawAtPoint/drawInRect in NSString/NSAttributedString says...
You should only invoke this method when an NSView object has focus.
Don’t invoke this method while no NSView is focused.
When an image is focused, and you draw text, it'll
On Aug 23, 2009, at 10:57 PM, J J wrote:
I'm trying to write an app that will page through text .. I'm trying
to grab the text, find out how much with fit on a page, write the
text to a view (page), then perhaps paginate the pages around it
onto other views to be ready as needed.
Anyone
On Aug 8, 2009, at 1:23 AM, Brian Bruinewoud wrote:
Hi,
I'm a little confused about how this code works:
MyController *myController = [[ myController alloc ]
initWithNibName: @myView bundle: nil ];
[[ self navigationController ] pushViewController:
myController animated:
On Aug 9, 2009, at 9:59 PM, Adam Gerson wrote:
I would like to insert objects out of order into an NSMutableArray.
I create the array with
NSMutableArray* cards = [[NSMutableArray alloc] initWithCapacity:5];
initWithCapacity simply makes an array large enough to contain that
number
of
On Aug 8, 2009, at 6:09 PM, John Michael Zorko wrote:
Hello, all ...
I load a UIImageView with an array of PNG images, and call
startAnimating -- this works very well. However, I need to know
when the animation is done, because I need to have a thread load the
next animation.
On Jul 28, 2009, at 12:22 AM, Kyle Sluder wrote:
On Jul 27, 2009, at 10:38 AM, YongLi liyon...@gmail.com wrote:
I have installed the snow leopardbut i can't find the download link
of xcode
3.2
1. This is cocoa-dev. This list exists for the discussion of Cocoa,
not for downloading seeds
On Jul 29, 2009, at 11:27 AM, Eric E. Dolecki wrote:
This is good to use:
#define UIColorFromRGB(rgbValue) [UIColor \ colorWithRed:((float)
((rgbValue
0xFF) 16))/255.0 \ green:((float)((rgbValue 0xFF00)
8))/255.0
\ blue:((float)(rgbValue 0xFF))/255.0 alpha:1.0]
cell.textColor =
On Jun 22, 2009, at 1:39 PM, Daniel Torrey wrote:
I'm looking at some sample iPhone code, and in the app delegate's
applicationDidFinishLaunching method, I see
// Set up the view controller
MyViewController *aViewController = [[MyViewController alloc]
initWithNibName:@HelloWorld
On Jun 18, 2009, at 10:39 AM, Chunk 1978 wrote:
agreed. the reason i asked is because i saw this snippet of code:
repeatCount = 1e100f; and i just though that seems awfully ambiguous
and hoped for something a little more universal.
Nothing ambiguous at all --- it's about 2 * 10 ^ 82 times
On Apr 22, 2009, at 11:25 AM, Maryanna Rogers wrote:
This path will never be drawn.
~m
On Wed, Apr 22, 2009 at 8:23 PM, David Duncan
david.dun...@apple.com wrote:
On Apr 22, 2009, at 10:54 AM, Maryanna Rogers wrote:
I need to take a CGPath (a set of lines, curves, etc.) and scale the
On Nov 22, 2008, at 5:48 PM, DKJ wrote:
On 22-Nov-08, at 17:40 , Ken Ferry wrote:
Take a look here:
Thanks for the reference, but I'm doing this for iPhone, and the
procedure seems to be different. The compiler doesn't recognise the
NSGraphicsContext class. I tried using the
On Sep 3, 2008, at 9:38 AM, Douglas Davidson wrote:
On Sep 3, 2008, at 6:01 AM, an0 wrote:
So, can anyone tell me why all these fell through so badly, and what
is the true straightforward way to do this if any?
The true straightforward way to do this is with -sizeToFit.
whose only purpose in life is to act as
a container for my drawing view.
But I agree that these are unusual cases . . .
Cheers,
. . . . . . . .Henry
===+
Henry McGilton, Boulevardier |Trilithon Software
Objective-C
On Jun 20, 2008, at 5:48 AM, Jason Wiggins wrote:
Hi everyone,
If possible, could someone please educate me on the fundamental
mistake in my understanding of use of classes/instances/
encapsulation/messaging. I have reread the Object-Oriented
Programming with Objective-C but didn't find
for your help and time.
As another long shot, which nobody appears to have mentioned:
Is the 'Release when closed' check-box on the Interface
Builder Window Inspector checked 'off' ?
Cheers,
Henry
===+
Henry
===+
Henry McGilton, Boulevardier |Trilithon Software
Objective-C/Java Composer | Seroia Research
---+
mailto:[EMAIL PROTECTED] | http://www.trilithon.com
been created using
styleMask:NSBorderlessWindowMask
you arrange that whatever view(s) intercept mouseDown
and mouseDragged will do the job of moving the window
appropriately.
Cheers,
Henry
===+
Henry
73 matches
Mail list logo