Re: how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread glenn andreas
ase do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/gandreas%40me.com > > This email sent to gandr...

Re: Send POST data to browser

2009-09-17 Thread glenn andreas
wn website and you can convert the CGI to support GET 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@lis

Re: UIGraphicsBeginImageContext thread safety

2009-10-01 Thread glenn andreas
e done on the main thread (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

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-15 Thread glenn andreas
n application modal document, 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/&g

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread glenn andreas
t happens 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

Re: Can I make custom pasteboard type for an object reference?

2009-10-16 Thread glenn andreas
ag the archived pasteboard 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-de

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-22 Thread glenn andreas
a sheet 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/>

Re: Displaying a view modally

2009-10-22 Thread glenn andreas
quot;consumes" all the touch 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 t

Re: UITextField in UITableView covered by keyboard

2009-10-24 Thread glenn andreas
set the content inset & scroll bar inset 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

Re: first responder being clobbered

2009-10-26 Thread glenn andreas
ppear" instead 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!

Re: Transparency Help

2009-11-23 Thread glenn andreas
hy not just draw it using 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

Re: Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...

2009-11-24 Thread glenn andreas
her than just replacing 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 ___

Re: Wondering about that iPad page curling

2010-04-06 Thread glenn andreas
mic-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

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread glenn andreas
egroundColor and kCTForegroundColorAttributeName documented as the same. So CTLineDraw expects to have the color specified as a CGColorRef in kCTForegroundColorAttributeName, while drawString: expects to have the color specified as an NSColor in NSForegroundColor. Glenn Andreas

Re: [NSMutableArray array]

2010-04-08 Thread glenn andreas
nce creation method being found in the declaration: - (NSParagraphStyle *) defaultParagraphStyle; instead of: - (id) defaultParagraphStyle; Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its

Re: NSCalendar date calculation anomaly

2010-04-28 Thread glenn andreas
te to be just a scalar value, with a separate time zone (and optional calendar) being the "unit". It's up to the formatter used to display that (scalar) date in the desired unit. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is

Re: self = [super init], nil?

2010-05-08 Thread glenn andreas
Those two produce different results, so comparing their efficiencies is pointless. To make matters worse, "if ([super init] != nil)" is also wrong, so it doesn't matter if it is more efficient. Glenn Andreas gandr...@gandreas.com The most

Re: Regarding MVC design pattern

2010-05-20 Thread glenn andreas
sn't been reached yet), and the -[Transcript setProperty:ofObject:toValue:] may not be able to deal with nil as the object parameter. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its c

Re: CFAttributedString and NSDATA

2010-06-03 Thread glenn andreas
various things 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

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread glenn andreas
n from the AppStore when you submit it) 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-de

Re: [iPhone] Preprocessing events sent to UITableView

2010-06-05 Thread glenn andreas
On Saturday, June 05, 2010, at 05:51PM, "WT" 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: there (in the

Re: Custom views in navigationbar (iOS 3.2)

2010-06-23 Thread glenn andreas
information hierarchy to find what they need. To address 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 g

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread glenn andreas
#x27; mean"? Since that document talks about method names that match certain patterns, I'm guessing that it walks 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

Re: UITableViewController, with table view not the root of its nib?

2011-08-03 Thread glenn andreas
nt to allow that item to show, and then, upon scrolling, make sure the view is on the top of the screen (both in Y and Z coordinates, since the table view may have made a new cell that ends up layered covering your view) Glenn Andreas gandr...@gandreas.com T

Re: Unnecessary Boolean Warning

2011-08-03 Thread glenn andreas
R 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 Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate al

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread glenn andreas
to null. Animatable. */ @property CGPathRef shadowPath; So not only does it have a shadow that you can change, 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

Re: +[UINib nibWithNibName:bundle:] and ~iPhone

2011-08-17 Thread glenn andreas
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...@g

Re: rightMouseDown: never called in NSView subclass

2011-08-26 Thread glenn andreas
whether my view is under the cursor, and if not, just call 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

Re: nonatomic vs atomic assign/retain

2011-09-07 Thread glenn andreas
loadNibNamed:@"ComplexTableViewCell" owner:self options:nil]; cell = [[self.loadedCell retain] autorelease]; self.loadedCell = nil; } // configure and return cell... } Not to mention that retained IB outlets also need to be nil'

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread glenn andreas
nnection:didReceiveData:), but there's no problem with crashing or other weird 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 ___

Re: NSDateFormatter refuses to format dates

2011-09-27 Thread glenn andreas
Not that that probably has a whole lot 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 _

Re: [SOLVED] Re: Mystery of the missing symbol

2011-10-03 Thread glenn andreas
r. Ultimate, if you need to support older OS versions, you need to keep older hardware around running that version (since newer hardware doesn't support running OS versions that are older than what was originally shipped with the device). Glenn Andreas gandr..

Re: adding something to a setter

2011-10-06 Thread glenn andreas
nal property and then synthesize it to use the original ivar @synthesize sideEffectFreeValue=value; and change your setter to: - (void) setValue: (NSString *) value { self.sideEffectFreeValue = value; [self setNeedDisplay: YES]; } Glenn Andreas gandr...@gandr

Re: Arc and performSelector

2011-10-17 Thread glenn andreas
hing key: (NSString *) ivarKey withTable: (NSString *) tableName { NSString *key = [thing valueForKey: ivarKey]; ... NSString *rep = ... ... [ thing setValue: rep forKey: ivarKey]; } Glenn Andreas gandr...@gandrea

Re: Using version number in code

2011-10-21 Thread glenn andreas
; > > > > ___ > > 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 > > Help/

Re: UITextField and UIGestureRecognizers

2011-11-10 Thread glenn andreas
e.g. bookmarks button @property(nonatomic)UITextFieldViewMode rightViewMode; // sets when the right view shows 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... Glen

Re: About iVars declaration and property

2011-11-15 Thread glenn andreas
Class Problem. The problem is that a subclass (in 32 bit OS X) needs to know the size of the superclass 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

Re: Implementing Full Screen for 10.7 but app should also run on 10.6

2011-11-16 Thread glenn andreas
f you actually link against X-1 (and manually add that flag from the X SDK) who knows what you'll get. 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 differen

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
s close as the 38 decimal digits of NSDecimal). 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-d

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
t can occur with floating point parsing (for example, you're code also misses handling 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 - H

Re: Outlets Not Connected In awakeFromNib

2011-03-02 Thread glenn andreas
MyRootViewController.nib" is only an outlet in the sense that the view controller's nibName ivar will be set to "MyRootViewController.nib" (which it will be during awakeFromNib). The whole purpose of having separate nibs is to avoid recursively loading everything all at once - i

Re: Notifications and Subclassing

2011-03-08 Thread glenn andreas
is used elsewhere (without > subclassing), with no problems. What am I missing? > > > That's 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 s

Re: NSXMLParserDelegateAbortedParseError

2011-03-08 Thread glenn andreas
ted the parser (which knows not a thing about your concepts of "Error" and "ErrorMessage" as returned 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

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread glenn andreas
than what the file publicly presents (i.e., attempting to reading alpha from a file 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 t

Re: iOS Best Practice Question

2011-04-26 Thread glenn andreas
a table view, just push a second table view onto the navigation 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 o

Re: iOS nib weirdness...

2011-05-04 Thread glenn andreas
e reserves the use of this convention. Use by third parties could result in name-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

Re: UIKeyboard (without Text filed)

2011-05-24 Thread glenn andreas
ome&ie=UTF-8&q=UIKeyboard+class+reference+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 h

Re: Using a Soundex category...

2011-07-06 Thread glenn andreas
gether. If you wanted to ignore that first character distinction, prepend your strings with a character like "X" that is unlikely to be a first character (since otherwise you'll get into trouble with its "drop double letters" step). The code appears to not care wha

Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread glenn andreas
e 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...@gan

Re: UIAlertView with UITextField

2011-07-27 Thread glenn andreas
coa-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 > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mail

Re: Button width should accomodate localized string

2009-11-29 Thread glenn andreas
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 An

Re: Contain touches within UIImageView only

2009-12-02 Thread glenn andreas
ol actually consider their content area to be much larger while tracking for better user experience), is entirely up to you. You can always test their location and ignore them... Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dan

Re: Question about touchesBegan

2009-12-09 Thread glenn andreas
o other responders in your 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

Re: NSNumber stringValue

2009-12-12 Thread glenn andreas
On Saturday, December 12, 2009, at 11:32AM, "Ben Haller" 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 integer 0x7fc0

Re: Intercepting events and touches in UIPickerView subclasses? (or, WTF is going in the UIPickerView's responder chain?)

2009-12-18 Thread glenn andreas
ass UIApplication and override sendEvent: - this can get ugly from an architecture point of view (since you no longer have a nice little reusable view - you've got to do major surgery on the application itself), and sendEvent: does a whole lot of work that you'll want to be carefu

Re: passing a method name?

2009-12-22 Thread glenn andreas
yle thing - dynamically figure out what to call based 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 (Coc

Re: Autorotation for a subview

2009-12-22 Thread glenn andreas
nt too but it doesn't. > > This sounds like a good time for the view to post 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

Re: Looking up a NSString constant at runtime

2010-01-04 Thread glenn andreas
CFBundle has routines for looking up both functions and data by name. It does require you figure out what framework the symbol comes from (and then get the corresponding CFBundle), but it is doable. Glenn Andreas gandr...@gandreas.com The most merciful thing in the w

Re: NSDate without time portion

2010-01-05 Thread glenn andreas
zone has been specified, or the current system time zone). If your time zone changes (such as by daylight savings time, or changing the location), the resulting date will print differently, but timeIntervalSinceReferenceDate will be unchanged. It is ultimately the date formatter

Re: iPhone: CATransition done (get the key?)

2010-01-13 Thread glenn andreas
uot;generators" 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"]

Re: Snapshotting hidden UIViews

2010-01-13 Thread glenn andreas
o useful drawRect:) - all 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 ___

Re: Snapshotting hidden UIViews

2010-01-13 Thread glenn andreas
On Jan 13, 2010, at 9:46 PM, Michael Gardner 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()), but it doesn&#

Re: Displaying animated content in iPhone app

2010-01-28 Thread glenn andreas
) but this approach works reasonable for handling things like animated GIFs (provided 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 ...

Re: NSXML and >

2010-02-09 Thread glenn andreas
The XML spec does not require '>' to be escaped as '>' (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 wrote: Hello, I'm usi

Re: ImageIO on iPhone

2010-02-16 Thread glenn andreas
gt; but no success. > I want to use 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 worl

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
al/initial forms). Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! m.o.t.e.s. | minute object twisted environment simulation ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
highlighting will give the trick away: ~Martin What about [NSColor clearColor] instead of white? 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 ___

Re: Number of images in main bundle folder (iPhone)

2009-06-26 Thread glenn andreas
tents copied en-masse, by adding the folder as a reference instead of a group. - You can manually copy the files where ever you want in a shell script build phase Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! Mad, Bad,

Re: [iPhone] Network connection between 2 iPhones

2009-07-13 Thread glenn andreas
er-to-peer connections to understand the ramifications of trying to have one random device talk to another random device. Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! quadrium2 | build, mutate, evolve

Re: Finding an available port for chat

2009-07-17 Thread glenn andreas
r, and have it forward packets between them, but that approach does not scale well. You're really going to have to do some more research on networking and peer-to-peer connections to understand the ramifications of trying to have one random device talk to another random device. G

Re: [iPhone] get iPhone's IP address...

2009-07-20 Thread glenn andreas
com - this issue has been discussed in detail and sample code that actually works can be found there... Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know ___ Co

Re: List classes in Bundle?

2009-07-22 Thread glenn andreas
classes in the system (using the various routines in the runtime), and check to see if bundleForClass returns the bundle you are looking for. If it hasn't been loaded, you can parse the macho file format and examine the objective-c sections, but that's a lot of work... Gle

rvalue vs lvalue (was Re: something I can't understand)

2009-07-29 Thread glenn andreas
d need to do is: CGPoint pt = pPngButton.verticalLoc; pt.x = (bVerticalDisplay == YES) ? 250 : 410; pPngButton.verticalLoc = pt.x; Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know _

Re: UIWebView: prevent from displaying menu, Copy.

2009-07-29 Thread glenn andreas
Go to devforums.apple.com/community/iphone and search there - this has been discussed, with solutions, there... Sent from my iPhone On Jul 29, 2009, at 10:35 PM, norio ota wrote: Hi, I'd like to prevent UIWebView from selecting an area and showing the "Copy" menu item. I tried subclass

Re: [iPhone] networking

2009-08-04 Thread glenn andreas
Bonjour for one phone to discover the other phone (which will automatically handle finding/resolving/advertising ip address/ports). Glenn Andreas gandr...@gandreas.com <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know ___

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread glenn andreas
manually, such as: po [theWebView stringByEvaluatingJavaScriptFromString @"'' + 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 c

Re: [iPhone] networking

2009-08-05 Thread glenn andreas
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://www.g

Re: NSURLCache

2009-08-10 Thread glenn andreas
g the shared cache to that new 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 <htt

Re: UITableView updating problem

2009-08-13 Thread glenn andreas
.. (change the accessoryType 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, ani

Re: UITableView updating problem

2009-08-13 Thread glenn andreas
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 vi

Re: Best way to determine what ip address are assigned to a given network interface.

2009-08-27 Thread glenn andreas
- no need 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 ___

Re: Unarchiving issues

2010-08-02 Thread glenn andreas
ytesForKey:@"continuations" 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 merci

Re: [iPhone] UITableViewCell Height with UIWebView content

2010-08-10 Thread glenn andreas
of the table cell (or detail disclosure). If your goal is just 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...@gandre

Re: CGImage to NSImage, or PDFPage?

2010-08-10 Thread glenn andreas
GImage:(CGImageRef)cgImage] and add it to an NSImage if you're using 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 ___

Re: NSKeyedArchiver on OSX to NSKeyedUnarchiver iOS

2010-08-11 Thread glenn andreas
p 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 gandr...@gandreas.com The most merciful thing in the world ... is the ina

Re: who stole my UIView?

2010-08-12 Thread glenn andreas
r to the electrical, and wondering why your water tastes tingly... 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-

Re: Box soft shadow?

2010-08-23 Thread glenn andreas
gt; googling, 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 mo

Re: UITableview scrollStyle

2010-09-24 Thread glenn andreas
View, so you can 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 h

Re: reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread glenn andreas
asing the (what will be the old) string value, which causes the text fields text ivar to point to garbage. 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 ___

Re: AM/PM letter UNICODE issues

2010-10-18 Thread glenn andreas
all sorts of other gory details and special cases. Even for US cases, there are people who set 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 a

Re: RTFDFromRange returns different data

2010-11-11 Thread glenn andreas
get the same data? Is it a bug? RTFDFromRange returns an archived (flattened) version of RTFD, which is undocumented 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-b

Re: Running JavaScript in iOS WebView.

2010-11-17 Thread glenn andreas
block, so when scripts are running, the user is not able to interact with the webpage. So one of your routines (I'm guessing rcs.invoke) is taking a long time (more than 10 seconds - perhaps it is waiting for some networked based action to complete). So if your JavaScript code is w

Re: iOS location enabled?

2010-11-24 Thread glenn andreas
information somewhere, 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

Re: NSTask with unzip

2010-11-28 Thread glenn andreas
tines to do the compression/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

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread glenn andreas
180 degrees!!, > 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 al

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread glenn andreas
t 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 gandr...@gandreas.com The most merciful thing in the world ... is

Re: iOS when is my app launched

2010-12-08 Thread glenn andreas
ut launch time to a minimum, and you should design a launch image that downplays 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 wa

Re: execute system("some script") on behalf of root from non-root app

2011-01-06 Thread glenn andreas
g 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 > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/gandrea

Re: How to scale a TabBarItem Image

2011-01-26 Thread glenn andreas
navigation stack would cause the tabs to be displayed 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 ru

Re: Device/Resolution independent positioning of GUI items on iOS

2012-03-19 Thread glenn andreas
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 Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to cor

  1   2   3   >