://lists.apple.com/mailman/options/cocoa-dev/gandreas%40me.com
This email sent to gandr...@me.com
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
That won't do any good, since if the receiver is nil, it'll return nil (since
nil isn't an object like it is in Smalltalk)
So the only place where it actually gets called will be the places that don't
need it.
On Apr 24, 2014, at 3:10 PM, Alex Zavatone z...@mac.com wrote:
Could we throw a
A PDF file can reuse an image and draw the same thing multiple times in
multiple places. If it saved just the clipped version, it would need multiple
copies of the same image, which would actually increase the file size.
So if the purpose of adding a cropImages flags was to save file space, in
On Jan 29, 2014, at 4:44 PM, Graham Cox graham@bigpond.com wrote:
On 30 Jan 2014, at 8:03 am, Keary Suska cocoa-...@esoteritech.com wrote:
Absolutely, and I have found it invaluable to troubleshoot state issues, but
unfortunately it is not App Store safe (read: basis for rejection),
Turn on -Woverriding-method-mismatch
$ xcrun clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
$ cat return.m
#import Foundation/Foundation.h
@interface ClassA :NSObject
- (void) foo;
@end
@interface ClassB :
When NSTextView puts rich content on a pasteboard (for copy/paste or
drag/drop), it converts the text to RTF. RTF has no concept of custom text
attachment cells, so they get dropped.
You'll need to add your own custom data type that preserves that content (such
using an archive)
On Aug 22,
On Aug 20, 2013, at 8:43 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
On 20 Aug 2013, at 20:27, Fritz Anderson anderson.fr...@gmail.com wrote:
Sure, but the whole point the OP is trying to make is that the purported
error is being raised by the refactoring process that is
On Apr 10, 2013, at 8:35 AM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
Hi,
When my app starts, I'd like to show a splash screen with a logo, etc, and
animate it to the main screen after a short delay.
On Apr 10, 2013, at 9:47 AM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
On Apr 10, 2013, at 10:39 AM, glenn andreas gandr...@me.com wrote:
Avoid displaying an About window or a splash screen. In general, try to
avoid providing any type of startup experience that prevents people
, since the time spent on the string is
dependent on the number of escape sequences in the string, not the number of
possible escape sequences.
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
to some sort of engineering
release)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev
use NSString's drawAtPoint:withFont: and the like...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list
people from using your
application immediately.
Also, the user doesn't click on the app's icon, they tap on it (see the section
entitled Apps Respond to Gestures, Not Clicks)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability
[myAnnotation returnPropertiesInDict] since
NSDictionary doesn't implement returnPropertiesInDict.
Try:
for (MyLocation * myAnnotation in self.mapView.annotations)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind
that the runtime can easily substitute another XIB file dynamically to
support different layout in iPhone vs iPad (or a different localization).
If you hard code this into your code, you've got to hard code in all the
differences in device layout as well as any localization specialization.
Glenn
.
Unlikely, but I wouldn't be surprised if this sort of thing hasn't bitten
somebody at some point... (though probably with things like side effects of
methods, and not different interpretations of constant flags)
Glenn Andreas gandr...@gandreas.com
The most merciful thing
so it know how to lay out its ivars. If there is no explicit ivars,
there is no way for the compiler to know the size (since when it is compiling
the subclass it doesn't see all the files that may potentially contain the
parent's ivars).
Glenn Andreas gandr...@gandreas.com
up. default is UITextFieldViewModeNever
Seems like putting a button in the rightView that displays when not being
edited would work fit with what you described...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind
://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com
This email sent to gandr...@mac.com
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
= ...
...
[ thing setValue: rep forKey: ivarKey];
}
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list
) setValue: (NSString *) value
{
self.sideEffectFreeValue = value;
[self setNeedDisplay: YES];
}
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
support
running OS versions that are older than what was originally shipped with the
device).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
to do with NSDateFormatter returning
empty strings...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list
errors.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
] autorelease];
self.loadedCell = nil;
}
// configure and return cell...
}
Not to mention that retained IB outlets also need to be nil'ed out when the
view is unloaded...
Glenn Andreas gandr...@gandreas.com
The most merciful thing
the
original implementation. However, method swizzling always feels like a dirty
workaround so I'm not sure if it would be much better than this (and if it
would be acceptable in the MAS).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world
This email sent to gandr...@mac.com
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev
, you can even animate the
shadow.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev
, since the table view may have made a new cell
that ends up layered covering your view)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
left-to-right evaluations; moreover the second operand
is not evaluated if the first operand is non-zero
(p191, section 7.12 Logical OR operator)
Nothing vague there. More likely the somebody that interviewed you didn't have
it correct in the first place, scarring you for life...
Glenn
requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com
This email sent to gandr...@mac.com
Glenn Andreas gandr
://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com
This email sent to gandr...@mac.com
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
to be a first character (since
otherwise you'll get into trouble with its drop double letters step). The
code appears to not care what the first character is (i.e., doesn't test for
alphabetic characters), so you could probably use something like #.
Glenn Andreas gandr...@gandreas.com
+site%3Aapple.com
Jeff
You can always have the text field be way off screen (that's the easy way, and
works on older systems), or you can have a view that implements the various
UIKeyInput protocol methods and have it become the first responder.
Glenn Andreas gandr
-space collisions; they might unwittingly
override an existing private method with one of their own, with disastrous
consequence.
You may be seeing one of those disastrous consequences
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world
controller and let the user select the element from
that table view, just like Settings.app does, etc...)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
that has tags declaring it to not have alpha would be non-conformant with the
TIFF spec).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
a classic memory management problem.
Most likely, you're forgetting to unregister your observer when you are
deallocating it (resulting in a notification center to have a stale pointer
that is later reused by an NSString).
Glenn Andreas gandr...@gandreas.com
The most merciful
by the
server):
- (NSError *)parserError; // can be called after a parse is over to
determine parser state.
This error is the parser state, which since you explicitly aborted the parse,
will be something like NSXMLParserDelegateAbortedParseError -512.
Glenn Andreas gandr
everything all at once - if that view is never displayed (say, on a tab bar
controller tab that the user never selects), its nib will never be loaded.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate
will result in loss of accuracy (since 0.1 can't be expressed
exactly in binary), where as NSDecimal will be able to handle it correctly.
For that matter, 52 bits of mantissa on a double is only approximately 16
decimal digits (no where near as close as the 38 decimal digits of NSDecimal).
Glenn
things like +123)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
for that
screen only and not for any others.
What you are attempting to do is going to be an issue that can get prevent your
app from being approved in the App Store. Rethink your UI design and approach
- you'll be better off in the long run...
Glenn Andreas gandr
%40mac.com
This email sent to gandr...@mac.com
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list
the experience rather than drawing attention to it.
So Default.png is not suppose to be a splash screen, and you're suppose to
strive to make it go away as fast as possible - not figure out ways to display
it for longer...
Glenn Andreas gandr...@gandreas.com
The most
!!,
CGFloat a = atan2(-dx,dy);
atan2's parameters are declared as:
double atan2(double y, double x);
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
the scroll/content inset), which
can be a painful mess, especially trying to support both pre 3.2, and 3.2/4.x
(since not only are the keyboard notifications different, but it deals with the
view being presented in the variety of different ways - sheet, full screen,
etc...)
Glenn Andreas
/decompression.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
, but can we get (read)
access to that programmatically?
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
to
complete). So if your JavaScript code is waiting for completion, you're going
to have to refactor that code to work more asynchronously and not block.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind
but probably includes things like time stamps or unique IDs. So
it is not a bug - archiving the same original data is not guaranteed to return
byte-for-byte identical archived results (but will return the same thing when
unarchived).
Glenn Andreas gandr...@gandreas.com
their time format to use 24 hour time and so would expect to see
13:00 and not 1:00p.
Bottom line is trying to display time in a non-standard format is going to be
problematic and have support issues.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world
it !!
It probably does (and so needs to send a release to the old value). What is
likely happening is that you've got your memory management screwed up
somewhere, and are over-releasing the (what will be the old) string value,
which causes the text fields text ivar to point to garbage.
Glenn
just set the scrollbar
type.
However, like UIScrollView, you are limited to three choices - all black, all
white, or black with a white border...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate
, and found something for text, but not just for a simple square
shape.
Draw with CGContextShadow set appropriately, or set the shadow property of the
CALayer of the UIView (if you are requiring iOS 3.2 or later)
Glenn Andreas gandr...@gandreas.com
The most merciful thing
delegate, you should never set the view
as a delegate of another CALayerobject. Additionally, you should never change
the delegate of this layer.
Basically you're break the underlying plumbing, connecting the cold water to
the electrical, and wondering why your water tastes tingly...
Glenn
to get from AppKits default attributed string support. So
you'll probably have to give up on using AppKit's NSAttributedString extensions
all together, and switch to the CoreText ones (and take advantage of the
CFAttributedString/NSAttributedString toll free bridging).
Glenn Andreas
to display styled text inside a table row, you can use
things like NSAttributedString/CoreText (or for pre 3.2 support,
CFAttributedString custom drawing routines).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind
10.5?
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
returnedLength:size];
NSAssert(size == [self continuationsSize] * sizeof(float), @Bad size
of bytes returned from decoding);
memcpy(continuations, bytes, size);
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind
the
method table (instead of calling respondsToSelector:).
I'd just override valueForKey: and setValue:forKey: in your class to handle
forwarding those to your wrapped object.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability
this,
you should flatten your information hierarchy.
So once you spend hours and hours coding and getting this working perfectly, it
will probably end up being rejected by the AppStore approval process.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world
On Saturday, June 05, 2010, at 05:51PM, WT jrca...@gmail.com wrote:
I need to hijack the set of touch events sent to a UITableView instance prior
to allowing the table to process those events.
I have a custom UIView, of which the table view is a subview, and I override
-hitTest:withEvent:
if your design requires a view living in anything other than the main
window, you should probably redesign it (or be prepared for lots of debugging
and testing, since the way multiple UIWindows work varies between OS release,
and possibility of rejection from the AppStore when you submit it)
Glenn
in AppKitAdditions.
If you have specific things in mind that you need, you should file an
enhancement request at bugreporter.apple.com.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents
] init];
when it gets to (2), calls the super init and at (1) ends up calling code at
(3). But self.uniqueId will be nil (since the code at (4) hasn't been reached
yet), and the -[Transcript setProperty:ofObject:toValue:] may not be able to
deal with nil as the object parameter.
Glenn
in the
desired unit.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
in
kCTForegroundColorAttributeName, while drawString: expects to have the color
specified as an NSColor in NSForegroundColor.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
: NSCenterTextAlignement];
to work. It doesn't (since ps is actually an immutable NSParagraphStyle).
The major clue that is isn't a convenience creation method being found in the
declaration:
- (NSParagraphStyle *) defaultParagraphStyle;
instead of:
- (id) defaultParagraphStyle;
Glenn Andreas
-page-curl.html
--
Gleb Dolgich
http://pixelespressoapps.com
On 6 Apr 2010, at 16:56, Laurent Daudelin wrote:
So, no other response from the regular crowd of resident experts on how
Apple engineers did this?
Glenn Andreas gandr...@gandreas.com
The most merciful thing
ImageIO from C++, that should be possible, shouldn't it?
Not on the iPhone - file an enhancement request...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
The XML spec does not require '' to be escaped as 'gt;' (except in
the case of ']]' when that doesn't mark the end of a cdata section).
Only '' and '' must be escaped - see section 2.4 of XML 1.0 spec.
Sent from my iPhone
On Feb 9, 2010, at 2:19 PM, Keith Blount keithblo...@yahoo.com
that you write the
code to decode the GIF files into the frames you need).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
that take a time value and create a value - it's up to the layer
to decide what to do with that value.
You can always use CALayer's animationForKey: to find out if it the animation
for a specific key:
if ([theLayer animationForKey:@fadeIn] == theAnimation) {
}
Glenn Andreas
of their rendering is handled by the view's layer.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list
On Jan 13, 2010, at 9:46 PM, Michael Gardner gardne...@gmail.com
wrote:
On Jan 13, 2010, at 5:07 PM, glenn andreas wrote:
On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
I also tried calling -drawRect: on my hidden view (after setting
the context with UIGraphicsBeginImageContext
), the resulting date will print
differently, but timeIntervalSinceReferenceDate will be unchanged. It is
ultimately the date formatter that handles time zones, daylight savings time,
etc...
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad
on the SEL passed in)...
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
an NSNotification. The
subview can then respond to it. m.
Or just mark the subview as needing layout and then have the subview figure
things out in layoutSubviews.
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
), and
sendEvent: does a whole lot of work that you'll want to be careful not to break.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
On Saturday, December 12, 2009, at 11:32AM, Ben Haller
bhcocoa...@sticksoftware.com wrote:
You should not compare floating point numbers for equality in most
cases. This is true of any language on any platform.
Indeed, some floating-point numbers (such as the one represented by
the
application, all of these responders should be instances of
your own subclasses of UIView.
It's definitely worth reading, and re-reading, those docs - all sorts of nice
explanations of how touch handling is handled can be found there...
Glenn Andreas gandr...@gandreas.com
http
On Nov 29, 2009, at 9:38 AM, Symadept wrote:
Hi,
How can I scale my button or Label to be able to accomodate the localized
string?
Any clues.
Regards
symadept
That's the whole purpose of being able to localize the nib/xib...
Glenn Andreas gandr...@gandreas.com
it with the appropriate migration
information).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev
one of the transfer modes like kCGBlendModeDarken or
kCGBlendModeMultiply rather than generate multiple images, tweaking all their
bits, custom kernels, etc...
Both modes should cause black pixels to be drawn as black, and white pixels to
not change the image at all...
Glenn Andreas
of viewWillAppear?
Since the view technically isn't on screen yet (only that it will
be), setting a first responder shouldn't be done then.
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
JSXObjC | the easy way to unite JavaScript and Objective C
appropriately (which is what UITableViewController does). Way more
easy than messing with frames (not to mention works correct - moving
the frame will result in the other end of the scrolling range not
being reachable).
Glenn Andreas gandr...@gandreas.com
http
is not support to block the app like runModal does, but to
work in conjunction with document architecture.
You're basically fighting the frameworks, and the frameworks always
win...
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous
events (i.e., implements everything, but does nothing), give
it a translucent gray background and make it the size of the window,
and add it as a subview of the window, on top of everything else.
Then add your modal content view on top of that blocking view.
Glenn Andreas
if the @implementation class details are different from
the @interface ones, and, again, not that I'd ever admit to having
done this, it is easy to accidentally write your implementation in
your .h file and leave the pasted @interface in your .m).
Glenn Andreas gandr
from you
pasteboard manager app.
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
___
Cocoa-dev mailing list (Cocoa-dev
, not a sheet.
So you can probably make it look right, but you won't be able to make
it work right (from the point of view of the user).
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
(which implies that there is a single, global
ui graphics context variable use by all of UIKit to indicate where
all UIKit based drawing should go).
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
as well as POST.
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous to Know
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
to fork off an extra task and parse
the output when you can just look at the information directly...
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
m.o.t.e.s. | minute object twisted environment simulation
of the selected row, go through
and remove the check mark from the previous one).
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
On Aug 13, 2009, at 8:44 AM, Brian Slick wrote:
On Aug 13, 2009, at 8:31 AM, glenn andreas wrote:
You're using a sledge hammer (reloadData) when you need a small
screwdriver.
From UITableView.h:
- (void)reloadData; // reloads everything from
scratch. redisplays visible
instance.
But it absolutely did work - once implemented, my set the table view
cell's image to an image from the net works nicely (and without it
scrolling was painful at best).
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun!
Mad, Bad, and Dangerous
@'' +
document.getElementByName('encrypted')]
That will show you if there really is something there like you expect.
Most likely, you're calling it at the wrong time, before the content
has been fully loaded/rendered...
Glenn Andreas gandr...@gandreas.com
http://www.gandreas.com/ wicked fun
to contact them via public IP addresses.
Of course, in the context of the original question (re: iPhone
networking), the iPhone is almost never going to have a public IP
address (being hidden behind WiFi or cell phone NATs).
Glenn Andreas gandr...@gandreas.com
http
1 - 100 of 182 matches
Mail list logo